Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/CommonVisualInterruptionSuppressors.kt +7 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ import android.content.pm.PackageManager import android.content.pm.PackageManager.PERMISSION_GRANTED import android.database.ContentObserver import android.hardware.display.AmbientDisplayConfiguration import android.os.Bundle import android.os.Handler import android.os.PowerManager import android.os.SystemProperties Loading Loading @@ -368,6 +369,11 @@ class AvalancheSuppressor( PendingIntent.FLAG_IMMUTABLE ) // Replace "System UI" app name with "Android System" val bundle = Bundle() bundle.putString(Notification.EXTRA_SUBSTITUTE_APP_NAME, context.getString(com.android.internal.R.string.android_system_label)) val builder = Notification.Builder(context, NotificationChannels.ALERTS) .setTicker(titleStr) Loading @@ -378,6 +384,7 @@ class AvalancheSuppressor( .setAutoCancel(true) .addAction(android.R.drawable.button_onoff_indicator_off, actionStr, pendingIntent) .setContentIntent(pendingIntent) .addExtras(bundle) notificationManager.notify(SystemMessage.NOTE_ADAPTIVE_NOTIFICATIONS, builder.build()) hasSeenEdu = true Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/CommonVisualInterruptionSuppressors.kt +7 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ import android.content.pm.PackageManager import android.content.pm.PackageManager.PERMISSION_GRANTED import android.database.ContentObserver import android.hardware.display.AmbientDisplayConfiguration import android.os.Bundle import android.os.Handler import android.os.PowerManager import android.os.SystemProperties Loading Loading @@ -368,6 +369,11 @@ class AvalancheSuppressor( PendingIntent.FLAG_IMMUTABLE ) // Replace "System UI" app name with "Android System" val bundle = Bundle() bundle.putString(Notification.EXTRA_SUBSTITUTE_APP_NAME, context.getString(com.android.internal.R.string.android_system_label)) val builder = Notification.Builder(context, NotificationChannels.ALERTS) .setTicker(titleStr) Loading @@ -378,6 +384,7 @@ class AvalancheSuppressor( .setAutoCancel(true) .addAction(android.R.drawable.button_onoff_indicator_off, actionStr, pendingIntent) .setContentIntent(pendingIntent) .addExtras(bundle) notificationManager.notify(SystemMessage.NOTE_ADAPTIVE_NOTIFICATIONS, builder.build()) hasSeenEdu = true Loading