diff options
author | Yorke Lee <yorkelee@google.com> | 2015-09-14 16:15:18 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-09-14 16:15:18 +0000 |
commit | 7054367021cab83e209177e2077825e8ec93c675 (patch) | |
tree | 874acefb18b2e81dc60bbb0a70992e72bc2c5f7e | |
parent | 1f6a2d5d0aa024be5348a20b737afcdcd454181e (diff) | |
parent | 306324b84809a2b53beb55260eef071d2d33f6d0 (diff) |
Merge "Remove EXTRA_CALL_ORIGIN from Dialer" into ub-contactsdialer-a-dev
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 20 | ||||
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 4 |
2 files changed, 4 insertions, 20 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 2589956bc..786acab1a 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -118,10 +118,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O public static final String SHARED_PREFS_NAME = "com.android.dialer_preferences"; - /** @see #getCallOrigin() */ - private static final String CALL_ORIGIN_DIALTACTS = - "com.android.dialer.DialtactsActivity"; - private static final String KEY_IN_REGULAR_SEARCH_UI = "in_regular_search_ui"; private static final String KEY_IN_DIALPAD_SEARCH_UI = "in_dialpad_search_ui"; private static final String KEY_SEARCH_QUERY = "search_query"; @@ -959,16 +955,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } /** - * Returns an appropriate call origin for this Activity. May return null when no call origin - * should be used (e.g. when some 3rd party application launched the screen. Call origin is - * for remembering the tab in which the user made a phone call, so the external app's DIAL - * request should not be counted.) - */ - public String getCallOrigin() { - return !isDialIntent(getIntent()) ? CALL_ORIGIN_DIALTACTS : null; - } - - /** * Shows the search fragment */ private void enterSearchUi(boolean smartDialSearch, String query, boolean animate) { @@ -1260,7 +1246,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O // 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, getCallOrigin()); + DialtactsActivity.this, dataUri, null); mClearSearchOnPause = true; } @@ -1277,8 +1263,8 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O phoneNumber = ""; } Intent intent = isVideoCall ? - IntentUtil.getVideoCallIntent(phoneNumber, getCallOrigin()) : - IntentUtil.getCallIntent(phoneNumber, getCallOrigin()); + IntentUtil.getVideoCallIntent(phoneNumber, (String) null) : + IntentUtil.getCallIntent(phoneNumber, (String) null); DialerUtils.startActivityWithErrorToast(this, intent); mClearSearchOnPause = true; } diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 0bbf802a4..c35bdea3c 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -1140,9 +1140,7 @@ public class DialpadFragment extends Fragment // Clear the digits just in case. clearDialpad(); } else { - final Intent intent = IntentUtil.getCallIntent(number, - (getActivity() instanceof DialtactsActivity ? - ((DialtactsActivity) getActivity()).getCallOrigin() : null)); + final Intent intent = IntentUtil.getCallIntent(number, (String) null); DialerUtils.startActivityWithErrorToast(getActivity(), intent); hideAndClearDialpad(false); } |