fix: resolve service crash on start by fixing foreground service type check and notification icon

This commit is contained in:
CAtlas0784 committed 2026-11-01 14:16:22 +07:00
1 parent 1f88f6ea38
commit 92a4b4f545
3 files changed
+195 -123

No files matched your search

@@ -22,8 +22,12 @@ class GaCyApplication : Application() {
createNotificationChannel()
// Initialize embedded Python runtime
if (!Python.isStarted()) {
Python.start(AndroidPlatform(this))
try {
if (!Python.isStarted()) {
Python.start(AndroidPlatform(this))
}
} catch (t: Throwable) {
t.printStackTrace()
}
}