From 8d9129daafdb72bfe565a09a4ab6e9de4eedf0d7 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Mon, 26 May 2025 18:25:17 +0300 Subject: [PATCH] Fix serivce starting crash on startup (cherry picked from commit 157d5e6c05d54f2e3dad5c0038df6ffe2bbddf22) --- .../main/kotlin/org/koitharu/kotatsu/main/ui/MainActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/main/ui/MainActivity.kt b/app/src/main/kotlin/org/koitharu/kotatsu/main/ui/MainActivity.kt index 3f94c1009..bd5a7d789 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/main/ui/MainActivity.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/main/ui/MainActivity.kt @@ -380,9 +380,9 @@ class MainActivity : BaseActivity(), AppBarOwner, BottomNav withResumed { MangaPrefetchService.prefetchLast(this@MainActivity) requestNotificationsPermission() + startService(Intent(this@MainActivity, LocalIndexUpdateService::class.java)) + startService(Intent(this@MainActivity, PeriodicalBackupService::class.java)) } - startService(Intent(this@MainActivity, LocalIndexUpdateService::class.java)) - startService(Intent(this@MainActivity, PeriodicalBackupService::class.java)) } }