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/DialtactsActivity.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/DialtactsActivity.java')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index f62dea161..dbff276e5 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -89,6 +89,7 @@ import com.android.dialer.widget.ActionBarController; import com.android.dialer.widget.SearchEditTextLayout; import com.android.dialer.widget.SearchEditTextLayout.Callback; import com.android.dialerbind.DatabaseHelperManager; +import com.android.incallui.Call.LogState; import com.android.phone.common.animation.AnimUtils; import com.android.phone.common.animation.AnimationListenerAdapter; @@ -1243,21 +1244,15 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } @Override - public void onPickPhoneNumberAction(Uri dataUri) { - // Specify call-origin so that users will see the previous tab instead of - // CallLog screen (search UI will be automatically exited). - PhoneNumberInteraction.startInteractionForPhoneCall( - DialtactsActivity.this, dataUri, null); + public void onPickPhoneNumberAction(Uri dataUri, int callInitiationType) { mClearSearchOnPause = true; + PhoneNumberInteraction.startInteractionForPhoneCall( + DialtactsActivity.this, dataUri, callInitiationType); } @Override - public void onCallNumberDirectly(String phoneNumber) { - onCallNumberDirectly(phoneNumber, false /* isVideoCall */); - } - - @Override - public void onCallNumberDirectly(String phoneNumber, boolean isVideoCall) { + public void onCallNumberDirectly(String phoneNumber, boolean isVideoCall, + int callInitiationType) { if (phoneNumber == null) { // Invalid phone number, but let the call go through so that InCallUI can show // an error message. @@ -1266,6 +1261,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O final Intent intent = new CallIntentBuilder(phoneNumber) .setIsVideoCall(isVideoCall) + .setCallInitiationType(callInitiationType) .build(); DialerUtils.startActivityWithErrorToast(this, intent); |