android: Fix crash when starting isolate

This commit is contained in:
PapaTutuWawa 2022-04-28 21:39:10 +02:00
parent 7259cdd4a1
commit e5daebcfc7

View File

@ -87,11 +87,11 @@ public class MoxplatformAndroidPlugin extends BroadcastReceiver implements Flutt
public static void setStartAtBoot(Context c, boolean value) {
c.getSharedPreferences(sharedPrefKey, Context.MODE_PRIVATE)
.edit()
.putBoolean(extraDataKey, value)
.putBoolean(autoStartAtBootKey, value)
.apply();
}
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() {