From e5daebcfc773e9951413d8a2079673aaf6126030 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Thu, 28 Apr 2022 21:39:10 +0200 Subject: [PATCH] android: Fix crash when starting isolate --- .../polynom/moxplatform_android/MoxplatformAndroidPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/moxplatform_android/android/src/main/java/me/polynom/moxplatform_android/MoxplatformAndroidPlugin.java b/src/moxplatform_android/android/src/main/java/me/polynom/moxplatform_android/MoxplatformAndroidPlugin.java index f24446f..cc95b33 100644 --- a/src/moxplatform_android/android/src/main/java/me/polynom/moxplatform_android/MoxplatformAndroidPlugin.java +++ b/src/moxplatform_android/android/src/main/java/me/polynom/moxplatform_android/MoxplatformAndroidPlugin.java @@ -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() {