diff --git a/app/src/main/java/com/machiav3lli/backup/Constants.kt b/app/src/main/java/com/machiav3lli/backup/Constants.kt index a3f1d2bdf..5ddf31367 100644 --- a/app/src/main/java/com/machiav3lli/backup/Constants.kt +++ b/app/src/main/java/com/machiav3lli/backup/Constants.kt @@ -90,7 +90,7 @@ const val PREFS_CACHEPACKAGES = "cachePackages" const val PREFS_CACHEONUPDATE = "usePackageCacheOnUpdate" const val PREFS_COLUMNNAMESAF = "useColumnNameSAF" const val PREFS_USEALARMCLOCK = "useAlarmClock" -const val PREFS_USEEXACTRALARM = "useExactAlarm" +const val PREFS_USEEXACTALARM = "useExactAlarm" const val PREFS_USEFOREGROUND = "useForeground" const val PREFS_USEEXPEDITED = "useExpedited" const val PREFS_PAUSEAPPS = "pauseApps" diff --git a/app/src/main/java/com/machiav3lli/backup/preferences/AdvancedPreferences.kt b/app/src/main/java/com/machiav3lli/backup/preferences/AdvancedPreferences.kt index 456bfe870..9443bd338 100644 --- a/app/src/main/java/com/machiav3lli/backup/preferences/AdvancedPreferences.kt +++ b/app/src/main/java/com/machiav3lli/backup/preferences/AdvancedPreferences.kt @@ -42,7 +42,7 @@ import com.machiav3lli.backup.PREFS_SHADOWROOTFILE import com.machiav3lli.backup.PREFS_SHOW_INFO_LOG import com.machiav3lli.backup.PREFS_STRICTHARDLINKS import com.machiav3lli.backup.PREFS_USEALARMCLOCK -import com.machiav3lli.backup.PREFS_USEEXACTRALARM +import com.machiav3lli.backup.PREFS_USEEXACTALARM import com.machiav3lli.backup.PREFS_USEEXPEDITED import com.machiav3lli.backup.PREFS_USEFOREGROUND import com.machiav3lli.backup.R @@ -217,7 +217,7 @@ val UseAlarmClockPref = Pref.BooleanPref( ) val UseExactAlarmPref = Pref.BooleanPref( - key = PREFS_USEEXACTRALARM, + key = PREFS_USEEXACTALARM, titleId = R.string.prefs_useexactalarm, summaryId = R.string.prefs_useexactalarm_summary, defaultValue = false diff --git a/app/src/main/java/com/machiav3lli/backup/utils/ScheduleUtils.kt b/app/src/main/java/com/machiav3lli/backup/utils/ScheduleUtils.kt index 223cadd0d..800d77ca5 100644 --- a/app/src/main/java/com/machiav3lli/backup/utils/ScheduleUtils.kt +++ b/app/src/main/java/com/machiav3lli/backup/utils/ScheduleUtils.kt @@ -25,7 +25,7 @@ import android.icu.util.Calendar import android.os.Build import com.machiav3lli.backup.OABX import com.machiav3lli.backup.PREFS_USEALARMCLOCK -import com.machiav3lli.backup.PREFS_USEEXACTRALARM +import com.machiav3lli.backup.PREFS_USEEXACTALARM import com.machiav3lli.backup.dbs.ODatabase import com.machiav3lli.backup.dbs.entity.Schedule import com.machiav3lli.backup.services.AlarmReceiver @@ -75,7 +75,7 @@ fun scheduleAlarm(context: Context, scheduleId: Long, rescheduleBoolean: Boolean pendingIntent ) } else { - if (hasPermission && OABX.prefFlag(PREFS_USEEXACTRALARM, true)) + if (hasPermission && OABX.prefFlag(PREFS_USEEXACTALARM, true)) alarmManager.setExactAndAllowWhileIdle( AlarmManager.RTC_WAKEUP, schedule.timeToRun,