android: Fix crash when starting isolate
This commit is contained in:
parent
7259cdd4a1
commit
e5daebcfc7
@ -87,11 +87,11 @@ public class MoxplatformAndroidPlugin extends BroadcastReceiver implements Flutt
|
|||||||
public static void setStartAtBoot(Context c, boolean value) {
|
public static void setStartAtBoot(Context c, boolean value) {
|
||||||
c.getSharedPreferences(sharedPrefKey, Context.MODE_PRIVATE)
|
c.getSharedPreferences(sharedPrefKey, Context.MODE_PRIVATE)
|
||||||
.edit()
|
.edit()
|
||||||
.putBoolean(extraDataKey, value)
|
.putBoolean(autoStartAtBootKey, value)
|
||||||
.apply();
|
.apply();
|
||||||
}
|
}
|
||||||
public static boolean getStartAtBoot(Context c) {
|
public static boolean getStartAtBoot(Context c) {
|
||||||
return c.getSharedPreferences(sharedPrefKey, Context.MODE_PRIVATE).getBoolean(extraDataKey, false);
|
return c.getSharedPreferences(sharedPrefKey, Context.MODE_PRIVATE).getBoolean(autoStartAtBootKey, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isRunning() {
|
private boolean isRunning() {
|
||||||
|
Reference in New Issue
Block a user