Commit a8f2e92b authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Use the high priority channel for the crash notification

parent 7805cb24
...@@ -53,10 +53,11 @@ class SmokeScreen : Application() { ...@@ -53,10 +53,11 @@ class SmokeScreen : Application() {
val customUncaughtExceptionHandler = EnrichableUncaughtExceptionHandler() val customUncaughtExceptionHandler = EnrichableUncaughtExceptionHandler()
private fun showCrashNotification() { private fun showCrashNotification() {
val notification = val notification =
NotificationCompat.Builder(this, Notifications.noConnectionNotificationChannelId(this)) NotificationCompat.Builder(this, Notifications.getHighPriorityChannelId(this))
.setSmallIcon(R.drawable.ic_cloud_warn) .setSmallIcon(R.drawable.ic_cloud_warn)
.setOngoing(false) .setOngoing(false)
.setAutoCancel(true) .setAutoCancel(true)
.setPriority(NotificationCompat.PRIORITY_HIGH)
.setContentIntent( .setContentIntent(
PendingIntent.getActivity( PendingIntent.getActivity(
this, RequestCodes.CRASH_NOTIFICATION, this, RequestCodes.CRASH_NOTIFICATION,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment