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() {