canScheduleExactAlarms

This commit is contained in:
M66B
2021-06-14 19:04:58 +02:00
parent 11c4eeb661
commit 184c2a9b3f
2 changed files with 12 additions and 1 deletions

View File

@@ -833,6 +833,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
setLastCleanup(prefs.getLong("last_cleanup", -1));
swExactAlarms.setEnabled(AlarmManagerCompatEx.canScheduleExactAlarms(getContext()));
swTestIab.setVisibility(BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);