Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e58fda79 authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

Merge "Added colors to system notifications" into lmp-dev

parents 6d1297ed 4ce62f3f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -90,7 +90,9 @@ public final class BluetoothPairingRequest extends BroadcastReceiver {
                        .setContentText(res.getString(R.string.bluetooth_notif_message, name))
                        .setContentIntent(pending)
                        .setAutoCancel(true)
                        .setDefaults(Notification.DEFAULT_SOUND);
                        .setDefaults(Notification.DEFAULT_SOUND)
                        .setColor(res.getColor(
                                com.android.internal.R.color.system_notification_accent_color));

                NotificationManager manager = (NotificationManager)
                        context.getSystemService(Context.NOTIFICATION_SERVICE);
+14 −11
Original line number Diff line number Diff line
@@ -130,8 +130,11 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver {
                        .setPriority(Notification.PRIORITY_MAX)
                        .setOnlyAlertOnce(false)
                        .setDefaults(Notification.DEFAULT_ALL)
                                        .setContentIntent(PendingIntent.getActivity(context, 0, connectionAccessIntent, 0))
                        .setContentIntent(PendingIntent.getActivity(context, 0,
                                connectionAccessIntent, 0))
                        .setDeleteIntent(PendingIntent.getBroadcast(context, 0, deleteIntent, 0))
                        .setColor(context.getResources().getColor(
                                com.android.internal.R.color.system_notification_accent_color))
                        .build();

                notification.flags |= Notification.FLAG_NO_CLEAR; /* cannot be set with the builder */