Add reference ASAP

This commit is contained in:
topjohnwu 2017-10-16 11:51:34 +08:00
parent 12352510fd
commit e6e04cc5b3

View File

@ -114,6 +114,10 @@ public class MagiskManager extends Application {
private static Handler mHandler = new Handler();
private boolean started = false;
public MagiskManager() {
weakSelf = new WeakReference<>(this);
}
private class LoadLocale extends ParallelTask<Void, Void, Void> {
@Override
@ -140,7 +144,6 @@ public class MagiskManager extends Application {
suDB = new SuDatabaseHelper(Utils.getEncContext());
}
weakSelf = new WeakReference<>(this);
repoDB = new RepoDatabaseHelper(this);
defaultLocale = Locale.getDefault();
setLocale();