Loading services/java/com/android/server/NotificationManagerService.java +4 −0 Original line number Original line Diff line number Diff line Loading @@ -49,6 +49,7 @@ import android.os.IBinder; import android.os.Message; import android.os.Message; import android.os.Power; import android.os.Power; import android.os.RemoteException; import android.os.RemoteException; import android.os.SystemProperties; import android.os.Vibrator; import android.os.Vibrator; import android.provider.Settings; import android.provider.Settings; import android.text.TextUtils; import android.text.TextUtils; Loading Loading @@ -945,6 +946,9 @@ class NotificationManagerService extends INotificationManager.Stub // to accidentally lose. // to accidentally lose. private void updateAdbNotification() { private void updateAdbNotification() { if (mAdbEnabled && mBatteryPlugged == BatteryManager.BATTERY_PLUGGED_USB) { if (mAdbEnabled && mBatteryPlugged == BatteryManager.BATTERY_PLUGGED_USB) { if ("0".equals(SystemProperties.get("persist.adb.notify"))) { return; } if (!mAdbNotificationShown) { if (!mAdbNotificationShown) { NotificationManager notificationManager = (NotificationManager) mContext NotificationManager notificationManager = (NotificationManager) mContext .getSystemService(Context.NOTIFICATION_SERVICE); .getSystemService(Context.NOTIFICATION_SERVICE); Loading Loading
services/java/com/android/server/NotificationManagerService.java +4 −0 Original line number Original line Diff line number Diff line Loading @@ -49,6 +49,7 @@ import android.os.IBinder; import android.os.Message; import android.os.Message; import android.os.Power; import android.os.Power; import android.os.RemoteException; import android.os.RemoteException; import android.os.SystemProperties; import android.os.Vibrator; import android.os.Vibrator; import android.provider.Settings; import android.provider.Settings; import android.text.TextUtils; import android.text.TextUtils; Loading Loading @@ -945,6 +946,9 @@ class NotificationManagerService extends INotificationManager.Stub // to accidentally lose. // to accidentally lose. private void updateAdbNotification() { private void updateAdbNotification() { if (mAdbEnabled && mBatteryPlugged == BatteryManager.BATTERY_PLUGGED_USB) { if (mAdbEnabled && mBatteryPlugged == BatteryManager.BATTERY_PLUGGED_USB) { if ("0".equals(SystemProperties.get("persist.adb.notify"))) { return; } if (!mAdbNotificationShown) { if (!mAdbNotificationShown) { NotificationManager notificationManager = (NotificationManager) mContext NotificationManager notificationManager = (NotificationManager) mContext .getSystemService(Context.NOTIFICATION_SERVICE); .getSystemService(Context.NOTIFICATION_SERVICE); Loading