fix: resolve service crash on start by fixing foreground service type check and notification icon
This commit is contained in:
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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user