Loading core/java/android/app/Notification.java +9 −1 Original line number Diff line number Diff line Loading @@ -574,7 +574,15 @@ public class Notification implements Parcelable @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Notification(vibrate="); sb.append("Notification(contentView="); if (contentView != null) { sb.append(contentView.getPackage()); sb.append("/0x"); sb.append(Integer.toHexString(contentView.getLayoutId())); } else { sb.append("null"); } sb.append(" vibrate="); if (this.vibrate != null) { int N = this.vibrate.length-1; sb.append("["); Loading packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java +5 −5 Original line number Diff line number Diff line Loading @@ -598,18 +598,18 @@ public class TabletStatusBar extends StatusBar implements // Can we just reapply the RemoteViews in place? If when didn't change, the order // didn't change. boolean orderUnchanged = (notification.notification.when == oldNotification.notification.when && notification.isOngoing() == oldNotification.isOngoing() boolean contentsUnchanged = notification.isOngoing() == oldNotification.isOngoing() && oldEntry.expanded != null && contentView != null && oldContentView != null && contentView.getPackage() != null && oldContentView.getPackage() != null && oldContentView.getPackage().equals(contentView.getPackage()) && oldContentView.getLayoutId() == contentView.getLayoutId()); && oldContentView.getLayoutId() == contentView.getLayoutId(); ViewGroup rowParent = (ViewGroup) oldEntry.row.getParent(); boolean orderUnchanged = notification.notification.when==oldNotification.notification.when; boolean isLastAnyway = rowParent.indexOfChild(oldEntry.row) == rowParent.getChildCount()-1; if (orderUnchanged || isLastAnyway) { if (contentsUnchanged && (orderUnchanged || isLastAnyway)) { if (DEBUG) Slog.d(TAG, "reusing notification for key: " + key); oldEntry.notification = notification; try { Loading tests/StatusBar/res/layout/notification_builder_test.xml +1 −1 Original line number Diff line number Diff line Loading @@ -322,7 +322,7 @@ <RadioButton android:id="@+id/title_short" style="@style/FieldContents" android:text="cwshort" android:text="short" android:tag="Title" /> <RadioButton Loading Loading
core/java/android/app/Notification.java +9 −1 Original line number Diff line number Diff line Loading @@ -574,7 +574,15 @@ public class Notification implements Parcelable @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Notification(vibrate="); sb.append("Notification(contentView="); if (contentView != null) { sb.append(contentView.getPackage()); sb.append("/0x"); sb.append(Integer.toHexString(contentView.getLayoutId())); } else { sb.append("null"); } sb.append(" vibrate="); if (this.vibrate != null) { int N = this.vibrate.length-1; sb.append("["); Loading
packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java +5 −5 Original line number Diff line number Diff line Loading @@ -598,18 +598,18 @@ public class TabletStatusBar extends StatusBar implements // Can we just reapply the RemoteViews in place? If when didn't change, the order // didn't change. boolean orderUnchanged = (notification.notification.when == oldNotification.notification.when && notification.isOngoing() == oldNotification.isOngoing() boolean contentsUnchanged = notification.isOngoing() == oldNotification.isOngoing() && oldEntry.expanded != null && contentView != null && oldContentView != null && contentView.getPackage() != null && oldContentView.getPackage() != null && oldContentView.getPackage().equals(contentView.getPackage()) && oldContentView.getLayoutId() == contentView.getLayoutId()); && oldContentView.getLayoutId() == contentView.getLayoutId(); ViewGroup rowParent = (ViewGroup) oldEntry.row.getParent(); boolean orderUnchanged = notification.notification.when==oldNotification.notification.when; boolean isLastAnyway = rowParent.indexOfChild(oldEntry.row) == rowParent.getChildCount()-1; if (orderUnchanged || isLastAnyway) { if (contentsUnchanged && (orderUnchanged || isLastAnyway)) { if (DEBUG) Slog.d(TAG, "reusing notification for key: " + key); oldEntry.notification = notification; try { Loading
tests/StatusBar/res/layout/notification_builder_test.xml +1 −1 Original line number Diff line number Diff line Loading @@ -322,7 +322,7 @@ <RadioButton android:id="@+id/title_short" style="@style/FieldContents" android:text="cwshort" android:text="short" android:tag="Title" /> <RadioButton Loading