daily pastebin goal
32%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Add a quick meeting and refresh app in background thread.
  3.  */
  4. public class AddEventInBackground {
  5.     Context mContext;
  6.  
  7.     public AddEventInBackground(Context mContext)
  8.   // it goes untill this bracket  {
  9.         this.mContext = mContext;
  10.     }
  11.  
  12.   // But it immediatly goes here??
  13.     SharedPreferences sharedPreferences = this.mContext.getSharedPreferences(SHARED_PREF_FILENAME,
  14.                                              Context.MODE_PRIVATE);
  15.     CountryActivity countryActivity = new CountryActivity();
  16.  
  17.     // TODO: sharedPreference should be used to retrieve calendarId instead of hard coding it.
  18.     String calendarId = countryActivity.getSharedCalendarId();
  19.  
  20.     View mView;
  21.     Map mSnackbarStringMap;
  22.     CompositeDisposable mDisposables;
  23.  
  24.     /**
  25.      * Getter for the RoomAvailablityActivity context.
  26.      *
  27.      * @param context the room availablity activity context.
  28.      */
  29.     public void getContext(Context context) {
  30.         this.mContext = context;
  31.     }
  32.  
  33.    /// ommitted
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top