Only use prefs after doing ApplicationlessInjection

This commit is contained in:
misaochan 2018-05-29 19:20:47 +10:00
parent dac6a15e60
commit 15b6a5e16e

View file

@ -60,8 +60,8 @@ public class FileProcessor implements SimilarImageDialogFragment.onResponse{
this.mediaUri = mediaUri;
this.contentResolver = contentResolver;
this.context = context;
useExtStorage = prefs.getBoolean("useExternalStorage", true);
ApplicationlessInjection.getInstance(context.getApplicationContext()).getCommonsApplicationComponent().inject(this);
useExtStorage = prefs.getBoolean("useExternalStorage", true);
}
/**