Refactored app flow and album logic

This commit is contained in:
Anthony La committed 2025-01-24 12:07:59 -08:00
1 parent 9be3a9c6d3
commit 7f039fa2b4
1 file changed
+3
@@ -71,6 +71,7 @@ class HomeWallpaperService: Service() {
if (intent != null) {
when (intent.action) {
Actions.START.toString() -> {
Log.d("PaperizeWallpaperChanger", "Starting home start wallpaper service")
homeInterval = intent.getIntExtra("homeInterval", SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT)
lockInterval = intent.getIntExtra("lockInterval", SettingsConstants.WALLPAPER_CHANGE_INTERVAL_DEFAULT)
scheduleSeparately = intent.getBooleanExtra("scheduleSeparately", false)
@@ -78,9 +79,11 @@ class HomeWallpaperService: Service() {
workerTaskStart()
}
Actions.UPDATE.toString() -> {
Log.d("PaperizeWallpaperChanger", "Starting home update wallpaper service")
workerTaskUpdate()
}
Actions.REFRESH.toString() -> {
Log.d("PaperizeWallpaperChanger", "Starting home refresh wallpaper service")
workerTaskRefresh()
}
}