diff options
author | Joe Onorato <joeo@google.com> | 2011-01-12 17:03:11 -0800 |
---|---|---|
committer | Joe Onorato <joeo@google.com> | 2011-01-12 17:06:14 -0800 |
commit | c9596d6d8e9154b5f87c8e887bfabf7546b68af5 (patch) | |
tree | 214ed2032c7ea965f535a6280b7ac578a72a8102 /core | |
parent | d7cbe592dd210069a4186e39bad1a95f6884d34b (diff) | |
download | frameworks_base-c9596d6d8e9154b5f87c8e887bfabf7546b68af5.zip frameworks_base-c9596d6d8e9154b5f87c8e887bfabf7546b68af5.tar.gz frameworks_base-c9596d6d8e9154b5f87c8e887bfabf7546b68af5.tar.bz2 |
Possibly fix bad notification updates.
I think what was happening is that it was using a different layout but we were trying to reapply the
RemoveViews because of some bad boolean logic. This fixes that, and adds some better debugging that
might show us what else is happening.
Bug: 3298062
Change-Id: I0984f24cb2960166c79b9f2cc7c6a98bd75e17ba
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/app/Notification.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 7b7cb37..0243b02 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -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("["); |