From 57d165a3c5669cc046023a120ffb4f88ab4c5600 Mon Sep 17 00:00:00 2001 From: PeratX <1215714524@qq.com> Date: Wed, 10 May 2017 06:09:44 +0800 Subject: [PATCH] Disabled boot receiver for android 4.x --- .../java/org/itxtech/daedalus/fragment/SettingsFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/org/itxtech/daedalus/fragment/SettingsFragment.java b/app/src/main/java/org/itxtech/daedalus/fragment/SettingsFragment.java index 64aa960..8424dcf 100644 --- a/app/src/main/java/org/itxtech/daedalus/fragment/SettingsFragment.java +++ b/app/src/main/java/org/itxtech/daedalus/fragment/SettingsFragment.java @@ -79,6 +79,9 @@ public class SettingsFragment extends PreferenceFragment { SwitchPreference advanced = (SwitchPreference) findPreference("settings_advanced_switch"); advanced.setEnabled(false); advanced.setChecked(false); + SwitchPreference boot = (SwitchPreference) findPreference("settings_boot"); + boot.setEnabled(false); + boot.setChecked(false); } SwitchPreference advanced = (SwitchPreference) findPreference("settings_advanced_switch");