android/Receiver: fix indent

This commit is contained in:
Max Kellermann 2022-01-13 00:23:30 +01:00
parent 86e9ed5f3a
commit 108ce95b7c
1 changed files with 14 additions and 12 deletions

View File

@ -30,8 +30,10 @@ public class Receiver extends BroadcastReceiver {
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_RUN_ON_BOOT,
false)) {
final boolean wakelock =
Settings.Preferences.getBoolean(context,
Settings.Preferences.KEY_WAKELOCK, false);
Main.start(context, wakelock);
}