Guest User

Untitled

a guest
Dec 13th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment