Fix build

devel
Koitharu 6 months ago
parent cc14e1abcf
commit ebc17b645b
Signed by: Koitharu
GPG Key ID: 676DEE768C17A9D7

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

Loading…
Cancel
Save