Fixed notification not appearing when only setting lock screen

This commit is contained in:
Anthonyy232 committed 2024-08-08 22:16:52 -07:00
1 parent 98e0b4ae2f
commit d72596f3a0
2 files changed
+2 -2

No files matched your search

@@ -536,7 +536,7 @@ fun PaperizeApp(
job?.cancel()
job = scope.launch {
delay(1000)
scheduler.updateWallpaper(settingsState.value.scheduleSeparately, setHome, settingsState.value.setLockWallpaper)
scheduler.updateWallpaper(false, setHome, settingsState.value.setLockWallpaper)
val alarmItem = WallpaperAlarmItem(
homeInterval = settingsState.value.homeInterval,
lockInterval = settingsState.value.lockInterval,
@@ -396,7 +396,7 @@ class LockWallpaperService: Service() {
}
}
// Run notification
if (homeInterval != lockInterval) {
if (homeInterval != lockInterval || setLock && !setHome) {
val formatter = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT)
val homeNextSetTime = LocalDateTime.parse(settingsDataStoreImpl.getString(SettingsConstants.HOME_NEXT_SET_TIME))
val lockNextSetTime: LocalDateTime?