Example #1
0
 public DraftsAdapter(final Context context) {
   super(context, R.layout.list_item_draft, null, new String[0], new int[0], 0);
   DaggerGeneralComponent.builder()
       .applicationModule(ApplicationModule.get(context))
       .build()
       .inject(this);
   mMediaLoadingHandler = new MediaLoadingHandler(R.id.media_preview_progress);
   mMediaPreviewStyle =
       Utils.getMediaPreviewStyle(mPreferences.getString(KEY_MEDIA_PREVIEW_STYLE, null));
 }
 public static UserColorNameManager getInstance(Context context) {
   return ApplicationModule.get(context).getUserColorNameManager();
 }