Prevent auto-start when unread crash reports exist
This commit is contained in:
@@ -21,6 +21,11 @@ class BootReceiver : BroadcastReceiver() {
|
|||||||
}
|
}
|
||||||
GlobalScope.launch(Dispatchers.IO) {
|
GlobalScope.launch(Dispatchers.IO) {
|
||||||
if (Settings.startedByUser) {
|
if (Settings.startedByUser) {
|
||||||
|
CrashReportManager.refresh()
|
||||||
|
if (CrashReportManager.unreadCount.value > 0) {
|
||||||
|
Settings.startedByUser = false
|
||||||
|
return@launch
|
||||||
|
}
|
||||||
withContext(Dispatchers.Main) {
|
withContext(Dispatchers.Main) {
|
||||||
BoxService.start()
|
BoxService.start()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user