mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Capture exception when restart service
This commit is contained in:
@@ -280,8 +280,10 @@ open class DatabaseTaskNotificationService : LockNotificationService(), Progress
|
|||||||
stopSelf()
|
stopSelf()
|
||||||
} else {
|
} else {
|
||||||
// Restart the service to open lock notification
|
// Restart the service to open lock notification
|
||||||
startService(Intent(applicationContext,
|
try {
|
||||||
DatabaseTaskNotificationService::class.java))
|
startService(Intent(applicationContext,
|
||||||
|
DatabaseTaskNotificationService::class.java))
|
||||||
|
} catch (e: IllegalStateException) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user