Skip to content

Commit

Permalink
PREFS_USEEXACT>R<ALARM
Browse files Browse the repository at this point in the history
  • Loading branch information
hg42 committed Sep 5, 2022
1 parent e97fbdb commit da144ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/machiav3lli/backup/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit da144ea

Please sign in to comment.