diff options
author | Yorke Lee <yorkelee@google.com> | 2015-08-31 16:19:43 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-09-02 10:34:50 -0700 |
commit | d77017d981b11611657f74f48290e88b7fa99c7b (patch) | |
tree | 1ea5b3f9737c7f67993508efdb65a162045f0deb /src/com/android/dialer/dialpad/DialpadFragment.java | |
parent | a7a74c95e8f9bc874d98b358ac060009b092b315 (diff) |
Don't show dialpad when adding a call
When receiving a DIAL intent with the "add_call_mode" extra set,
don't show the dialpad when DialtactsActivity is launched.
Bug: 23519909
Change-Id: I5e8d462b3e75a12a5ccd38cfb8871b9626f2e9bb
Diffstat (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 01dc892e5..0bbf802a4 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -481,7 +481,10 @@ public class DialpadFragment extends Fragment * @param intent The intent. * @return {@literal true} if add call operation was requested. {@literal false} otherwise. */ - private static boolean isAddCallMode(Intent intent) { + public static boolean isAddCallMode(Intent intent) { + if (intent == null) { + return false; + } final String action = intent.getAction(); if (Intent.ACTION_DIAL.equals(action) || Intent.ACTION_VIEW.equals(action)) { // see if we are "adding a call" from the InCallScreen; false by default. |