ACTION_DIAL should show dialpadchooser
Launching the TwelveKeyDialer with ACTION_DIAL and no data is currently
showing the dialpad regardless the call state of the phone.
With this change it will show the dialpadchooser, in the case no uri-data
is provided and there's an active call.
Bug: 2878748
Change-Id: I5584b449e53c661e7d71d06f4efce68172826041
diff --git a/src/com/android/contacts/TwelveKeyDialer.java b/src/com/android/contacts/TwelveKeyDialer.java
index 07927de..a16ca32 100644
--- a/src/com/android/contacts/TwelveKeyDialer.java
+++ b/src/com/android/contacts/TwelveKeyDialer.java
@@ -324,6 +324,11 @@
}
}
}
+ } else {
+ // Like ACTION_MAIN
+ // If there's already an active call, bring up an intermediate UI
+ // to make the user confirm what they really want to do.
+ needToShowDialpadChooser = phoneIsInUse();
}
} else if (Intent.ACTION_MAIN.equals(action)) {
// The MAIN action means we're bringing up a blank dialer