Fixed notification not appearing when only setting lock screen
This commit is contained in:
1 parent
98e0b4ae2f
commit
d72596f3a0
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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,
|
||||
|
||||
+1
-1
@@ -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?
|
||||
|
||||
Reference in new issue
Block a user