diff options
author | Yorke Lee <yorkelee@google.com> | 2015-09-14 18:43:27 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-09-16 10:38:16 -0700 |
commit | c8d6e16572f900f01545ebf947d15e7006fe4e46 (patch) | |
tree | efdc4e7cdfb7c77a33a84db0ff2450cc61b4a510 /src/com/android/dialer/dialpad/DialpadFragment.java | |
parent | 411dd7401997a83a876446261bdf70b3e2c9c4de (diff) |
Log various call initiation entry points
Speed dial (PhoneNumberPickerInteraction, SpeedDialFragment)
Regular search (RegularSearchFragment)
Remote Directory (RegularSearchFragment)
Call Log (CallLogAdapter)
Smart Dial Search (SmartDialSearchFragment)
Dialpad (DialpadFragment)
Bug: 23164804
Change-Id: I7cc881ac655fca6d4f365b5de36a4087c4f17700
Diffstat (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index eb17fefe3..d2628da5e 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -82,6 +82,7 @@ import com.android.dialer.SpecialCharSequenceMgr; import com.android.dialer.calllog.PhoneAccountUtils; import com.android.dialer.util.DialerUtils; import com.android.dialer.util.IntentUtil.CallIntentBuilder; +import com.android.incallui.Call.LogState; import com.android.phone.common.CallLogAsync; import com.android.phone.common.animation.AnimUtils; import com.android.phone.common.dialpad.DialpadKeyButton; @@ -1045,7 +1046,9 @@ public class DialpadFragment extends Fragment public void callVoicemail() { DialerUtils.startActivityWithErrorToast(getActivity(), - new CallIntentBuilder(CallUtil.getVoicemailUri()).build()); + new CallIntentBuilder(CallUtil.getVoicemailUri()) + .setCallInitiationType(LogState.INITIATION_DIALPAD) + .build()); hideAndClearDialpad(false); } @@ -1141,7 +1144,9 @@ public class DialpadFragment extends Fragment // Clear the digits just in case. clearDialpad(); } else { - final Intent intent = new CallIntentBuilder(number).build(); + final Intent intent = new CallIntentBuilder(number). + setCallInitiationType(LogState.INITIATION_DIALPAD) + .build(); DialerUtils.startActivityWithErrorToast(getActivity(), intent); hideAndClearDialpad(false); } |