Fix build

This commit is contained in:
Koitharu
2025-10-19 16:08:37 +03:00
parent cc14e1abcf
commit ebc17b645b

View File

@@ -2,6 +2,7 @@ package org.koitharu.kotatsu.main.ui
import android.Manifest import android.Manifest
import android.app.BackgroundServiceStartNotAllowedException import android.app.BackgroundServiceStartNotAllowedException
import android.app.ServiceStartNotAllowedException
import android.content.Intent import android.content.Intent
import android.content.pm.PackageManager.PERMISSION_GRANTED import android.content.pm.PackageManager.PERMISSION_GRANTED
import android.os.Build import android.os.Build
@@ -305,7 +306,7 @@ class MainActivity : BaseActivity<ActivityMainBinding>(), AppBarOwner, BottomNav
} }
} }
} }
} catch (e: BackgroundServiceStartNotAllowedException) { } catch (e: IllegalStateException) {
e.printStackTraceDebug() e.printStackTraceDebug()
} }