Fix uninitialized preferences in MainApp

Fixes #3728

Signed-off-by: Chris Narkiewicz <hello@ezaquarii.com>
This commit is contained in:
Chris Narkiewicz 2019-03-09 15:32:43 +00:00
parent bde010b84b
commit 4429af9189
No known key found for this signature in database
GPG key ID: 98BF5BA2F3BB4D28

View file

@ -130,7 +130,7 @@ public class MainApp extends MultiDexApplication {
DisplayUtils.useCompatVectorIfNeeded();
sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
preferences = PreferenceManager.fromContext(this);
fixStoragePath();
MainApp.storagePath = sharedPreferences.getString(SettingsActivity.PreferenceKeys.STORAGE_PATH,