Fix crashes on OOS
This commit is contained in:
parent
75c2cfe7bf
commit
2c42c79482
@ -1,5 +1,6 @@
|
|||||||
package com.topjohnwu.core;
|
package com.topjohnwu.core;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.content.res.Configuration;
|
import android.content.res.Configuration;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
@ -32,8 +33,9 @@ public class App extends ContainerApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate() {
|
protected void attachBaseContext(Context base) {
|
||||||
super.onCreate();
|
super.attachBaseContext(base);
|
||||||
|
mResource = base.getResources();
|
||||||
|
|
||||||
Shell.Config.setFlags(Shell.FLAG_MOUNT_MASTER);
|
Shell.Config.setFlags(Shell.FLAG_MOUNT_MASTER);
|
||||||
Shell.Config.verboseLogging(BuildConfig.DEBUG);
|
Shell.Config.verboseLogging(BuildConfig.DEBUG);
|
||||||
|
Loading…
Reference in New Issue
Block a user