diff options
author | Chris Wren <cwren@android.com> | 2014-10-29 14:20:19 -0400 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2014-10-29 14:38:01 -0400 |
commit | 79ac09e4399923bf533c21c7c89038292529b379 (patch) | |
tree | d6bbbbd4955cec9871a1c6bc53bb1c4cdf6db113 /packages/SystemUI | |
parent | 7a0ae7ed31a9e7e296c549dfbf035bf4270be69c (diff) | |
download | frameworks_base-79ac09e4399923bf533c21c7c89038292529b379.zip frameworks_base-79ac09e4399923bf533c21c7c89038292529b379.tar.gz frameworks_base-79ac09e4399923bf533c21c7c89038292529b379.tar.bz2 |
Add logging to diagnose notification click issue.
Bug: 18102199
Change-Id: Id022faa7b75f28f446155f15ab4a8373869c163c
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java index 1b4bdf8..67d4bdf 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java @@ -59,6 +59,7 @@ import android.service.notification.NotificationListenerService.RankingMap; import android.service.notification.StatusBarNotification; import android.text.TextUtils; import android.util.Log; +import android.util.Slog; import android.util.SparseArray; import android.util.SparseBooleanArray; import android.view.Display; @@ -113,6 +114,9 @@ public abstract class BaseStatusBar extends SystemUI implements public static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG); public static final boolean MULTIUSER_DEBUG = false; + // STOPSHIP disable once we resolve b/18102199 + private static final boolean ACTION_BUTTONS_DEBUG = true; + protected static final int MSG_SHOW_RECENT_APPS = 1019; protected static final int MSG_HIDE_RECENT_APPS = 1020; protected static final int MSG_TOGGLE_RECENTS_APPS = 1021; @@ -325,6 +329,9 @@ public abstract class BaseStatusBar extends SystemUI implements ViewGroup actionGroup = (ViewGroup) parent; index = actionGroup.indexOfChild(view); } + if (NOTIFICATION_CLICK_DEBUG) { + Log.d(TAG, "Clicked on button " + index + " for " + key); + } try { mBarService.onNotificationActionClick(key, index); } catch (RemoteException e) { @@ -1515,6 +1522,9 @@ public abstract class BaseStatusBar extends SystemUI implements } public void onClick(final View v) { + if (NOTIFICATION_CLICK_DEBUG) { + Log.d(TAG, "Clicked on content of " + mNotificationKey); + } final boolean keyguardShowing = mStatusBarKeyguardViewManager.isShowing(); final boolean afterKeyguardGone = mIntent.isActivity() && PreviewInflater.wouldLaunchResolverActivity(mContext, mIntent.getIntent(), |