Merge "Add logging to diagnose notification click issue." into lmp-mr1-dev
This commit is contained in:
@@ -59,6 +59,7 @@ import android.service.notification.NotificationListenerService.RankingMap;
|
|||||||
import android.service.notification.StatusBarNotification;
|
import android.service.notification.StatusBarNotification;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import android.util.Slog;
|
||||||
import android.util.SparseArray;
|
import android.util.SparseArray;
|
||||||
import android.util.SparseBooleanArray;
|
import android.util.SparseBooleanArray;
|
||||||
import android.view.Display;
|
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 DEBUG = Log.isLoggable(TAG, Log.DEBUG);
|
||||||
public static final boolean MULTIUSER_DEBUG = false;
|
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_SHOW_RECENT_APPS = 1019;
|
||||||
protected static final int MSG_HIDE_RECENT_APPS = 1020;
|
protected static final int MSG_HIDE_RECENT_APPS = 1020;
|
||||||
protected static final int MSG_TOGGLE_RECENTS_APPS = 1021;
|
protected static final int MSG_TOGGLE_RECENTS_APPS = 1021;
|
||||||
@@ -325,6 +329,9 @@ public abstract class BaseStatusBar extends SystemUI implements
|
|||||||
ViewGroup actionGroup = (ViewGroup) parent;
|
ViewGroup actionGroup = (ViewGroup) parent;
|
||||||
index = actionGroup.indexOfChild(view);
|
index = actionGroup.indexOfChild(view);
|
||||||
}
|
}
|
||||||
|
if (NOTIFICATION_CLICK_DEBUG) {
|
||||||
|
Log.d(TAG, "Clicked on button " + index + " for " + key);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
mBarService.onNotificationActionClick(key, index);
|
mBarService.onNotificationActionClick(key, index);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
@@ -1515,6 +1522,9 @@ public abstract class BaseStatusBar extends SystemUI implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void onClick(final View v) {
|
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 keyguardShowing = mStatusBarKeyguardViewManager.isShowing();
|
||||||
final boolean afterKeyguardGone = mIntent.isActivity()
|
final boolean afterKeyguardGone = mIntent.isActivity()
|
||||||
&& PreviewInflater.wouldLaunchResolverActivity(mContext, mIntent.getIntent(),
|
&& PreviewInflater.wouldLaunchResolverActivity(mContext, mIntent.getIntent(),
|
||||||
|
|||||||
Reference in New Issue
Block a user