Default exact alarms

This commit is contained in:
M66B 2021-06-01 07:54:10 +02:00
parent 0e1b737076
commit 4a69f2fdbc
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ public class AlarmManagerCompatEx {
@NonNull Context context, @NonNull AlarmManager am,
int type, long trigger, @NonNull PendingIntent pi) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean exact_alarms = prefs.getBoolean("exact_alarms", false);
boolean exact_alarms = prefs.getBoolean("exact_alarms", true);
if (exact_alarms)
AlarmManagerCompat.setExactAndAllowWhileIdle(am, type, trigger, pi);

View File

@ -1003,7 +1003,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
swAuthLogin.setChecked(prefs.getBoolean("auth_login", true));
swAuthNtlm.setChecked(prefs.getBoolean("auth_ntlm", true));
swAuthSasl.setChecked(prefs.getBoolean("auth_sasl", true));
swExactAlarms.setChecked(prefs.getBoolean("exact_alarms", false));
swExactAlarms.setChecked(prefs.getBoolean("exact_alarms", true));
swTestIab.setChecked(prefs.getBoolean("test_iab", false));
tvProcessors.setText(getString(R.string.title_advanced_processors, Runtime.getRuntime().availableProcessors()));