diff --git a/android/src/Receiver.java b/android/src/Receiver.java index 6a6685720..1ba537ca6 100644 --- a/android/src/Receiver.java +++ b/android/src/Receiver.java @@ -25,16 +25,18 @@ import android.content.Intent; import android.util.Log; public class Receiver extends BroadcastReceiver { - @Override - public void onReceive(Context context, Intent intent) { - Log.d("Receiver", "onReceive: " + intent); - if (intent.getAction() == "android.intent.action.BOOT_COMPLETED") { - if (Settings.Preferences.getBoolean(context, - Settings.Preferences.KEY_RUN_ON_BOOT, false)) { - final boolean wakelock = Settings.Preferences.getBoolean(context, - Settings.Preferences.KEY_WAKELOCK, false); - Main.start(context, wakelock); - } - } - } + @Override + public void onReceive(Context context, Intent intent) { + Log.d("Receiver", "onReceive: " + intent); + if (intent.getAction() == "android.intent.action.BOOT_COMPLETED") { + if (Settings.Preferences.getBoolean(context, + Settings.Preferences.KEY_RUN_ON_BOOT, + false)) { + final boolean wakelock = + Settings.Preferences.getBoolean(context, + Settings.Preferences.KEY_WAKELOCK, false); + Main.start(context, wakelock); + } + } + } }