Loading packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +40 −34 Original line number Diff line number Diff line Loading @@ -419,6 +419,7 @@ public abstract class BaseStatusBar extends SystemUI implements public void onNotificationPosted(final StatusBarNotification sbn, final RankingMap rankingMap) { if (DEBUG) Log.d(TAG, "onNotificationPosted: " + sbn); if (sbn != null) { mHandler.post(new Runnable() { @Override public void run() { Loading Loading @@ -451,29 +452,34 @@ public abstract class BaseStatusBar extends SystemUI implements } }); } } @Override public void onNotificationRemoved(final StatusBarNotification sbn, public void onNotificationRemoved(StatusBarNotification sbn, final RankingMap rankingMap) { if (DEBUG) Log.d(TAG, "onNotificationRemoved: " + sbn); if (sbn != null) { final String key = sbn.getKey(); mHandler.post(new Runnable() { @Override public void run() { removeNotification(sbn.getKey(), rankingMap); removeNotification(key, rankingMap); } }); } } @Override public void onNotificationRankingUpdate(final RankingMap rankingMap) { if (DEBUG) Log.d(TAG, "onRankingUpdate"); if (rankingMap != null) { mHandler.post(new Runnable() { @Override public void run() { updateNotificationRanking(rankingMap); } }); } } } }; Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +40 −34 Original line number Diff line number Diff line Loading @@ -419,6 +419,7 @@ public abstract class BaseStatusBar extends SystemUI implements public void onNotificationPosted(final StatusBarNotification sbn, final RankingMap rankingMap) { if (DEBUG) Log.d(TAG, "onNotificationPosted: " + sbn); if (sbn != null) { mHandler.post(new Runnable() { @Override public void run() { Loading Loading @@ -451,29 +452,34 @@ public abstract class BaseStatusBar extends SystemUI implements } }); } } @Override public void onNotificationRemoved(final StatusBarNotification sbn, public void onNotificationRemoved(StatusBarNotification sbn, final RankingMap rankingMap) { if (DEBUG) Log.d(TAG, "onNotificationRemoved: " + sbn); if (sbn != null) { final String key = sbn.getKey(); mHandler.post(new Runnable() { @Override public void run() { removeNotification(sbn.getKey(), rankingMap); removeNotification(key, rankingMap); } }); } } @Override public void onNotificationRankingUpdate(final RankingMap rankingMap) { if (DEBUG) Log.d(TAG, "onRankingUpdate"); if (rankingMap != null) { mHandler.post(new Runnable() { @Override public void run() { updateNotificationRanking(rankingMap); } }); } } } }; Loading