Avoid suppressing message updates as progress
This commit is contained in:
@@ -78,7 +78,11 @@ object NotificationContents {
|
|||||||
} == true,
|
} == true,
|
||||||
isGroupSummary = notification.flags and Notification.FLAG_GROUP_SUMMARY != 0,
|
isGroupSummary = notification.flags and Notification.FLAG_GROUP_SUMMARY != 0,
|
||||||
isRoutine = extras?.getBoolean(Notification.EXTRA_SHOW_CHRONOMETER, false) == true ||
|
isRoutine = extras?.getBoolean(Notification.EXTRA_SHOW_CHRONOMETER, false) == true ||
|
||||||
extras?.containsKey(Notification.EXTRA_PROGRESS) == true,
|
extras?.getBoolean(Notification.EXTRA_PROGRESS_INDETERMINATE, false) == true ||
|
||||||
|
extras?.let {
|
||||||
|
it.getInt(Notification.EXTRA_PROGRESS_MAX, 0) > 0 &&
|
||||||
|
it.getInt(Notification.EXTRA_PROGRESS, -1) >= 0
|
||||||
|
} == true,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user