Use a more benign icon for ADB notifications.
Also suppress vibe & noise for ADB notifications. Bug: 2544480 Bug: 2545486 Change-Id: I955a7271f47601f9b35f0d3fcd48363370ebd252
This commit is contained in:
@@ -1136,11 +1136,13 @@ class NotificationManagerService extends INotificationManager.Stub
|
||||
|
||||
if (mAdbNotification == null) {
|
||||
mAdbNotification = new Notification();
|
||||
mAdbNotification.icon = com.android.internal.R.drawable.stat_sys_warning;
|
||||
mAdbNotification.icon = com.android.internal.R.drawable.stat_sys_adb;
|
||||
mAdbNotification.when = 0;
|
||||
mAdbNotification.flags = Notification.FLAG_ONGOING_EVENT;
|
||||
mAdbNotification.tickerText = title;
|
||||
mAdbNotification.defaults |= Notification.DEFAULT_SOUND;
|
||||
mAdbNotification.defaults = 0; // please be quiet
|
||||
mAdbNotification.sound = null;
|
||||
mAdbNotification.vibrate = null;
|
||||
}
|
||||
|
||||
Intent intent = new Intent(
|
||||
|
||||
Reference in New Issue
Block a user