From 2df74060c8206d0817a1222bdd5b6cee714f0495 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 25 Mar 2015 16:27:03 -0700 Subject: Add logging of shortcut types on click. Log more info, to help with debugging misbehaving shortcuts. Bug: 19406317 Change-Id: Ia1dd8e51f7129a142d23867179fd1db7ca86c865 --- src/com/android/dialer/list/SearchFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/android/dialer/list/SearchFragment.java b/src/com/android/dialer/list/SearchFragment.java index 24ddc7351..000e139fe 100644 --- a/src/com/android/dialer/list/SearchFragment.java +++ b/src/com/android/dialer/list/SearchFragment.java @@ -22,6 +22,7 @@ import android.net.Uri; import android.os.Bundle; import android.provider.ContactsContract; import android.text.TextUtils; +import android.util.Log; import android.view.View; import android.view.animation.Interpolator; import android.widget.AbsListView; @@ -40,6 +41,7 @@ import com.android.dialer.util.DialerUtils; import com.android.phone.common.animation.AnimUtils; public class SearchFragment extends PhoneNumberPickerFragment { + private static final String TAG = SearchFragment.class.getSimpleName(); private static final String SMS_URI_PREFIX = "sms:"; private OnListFragmentScrolledListener mActivityScrollListener; @@ -156,6 +158,7 @@ public class SearchFragment extends PhoneNumberPickerFragment { final Intent intent; final String number; + Log.i(TAG, "onItemClick: shortcutType=" + shortcutType); switch (shortcutType) { case DialerPhoneNumberListAdapter.SHORTCUT_INVALID: super.onItemClick(position, id); -- cgit v1.2.3