diff options
author | Makoto Onuki <omakoto@google.com> | 2013-09-12 17:59:24 -0700 |
---|---|---|
committer | Makoto Onuki <omakoto@google.com> | 2013-09-16 10:15:21 -0700 |
commit | 2ce872d6f7dd8a7eb0275b4195336f779972f698 (patch) | |
tree | 2514d667ac69e2e88b695a502674a60b0a89d7aa /src/com/android/incallui/InCallPresenter.java | |
parent | 6b381d25a7ebd048a26a5f115e920cea27507603 (diff) | |
download | packages_apps_InCallUI-2ce872d6f7dd8a7eb0275b4195336f779972f698.tar.gz packages_apps_InCallUI-2ce872d6f7dd8a7eb0275b4195336f779972f698.tar.bz2 packages_apps_InCallUI-2ce872d6f7dd8a7eb0275b4195336f779972f698.zip |
b/10699042 show dialpad when connects to voice mail.
Also now "Use touch tone keypad" in the dialer works, and
it automatically un-holds if there's only once call and it's
on hold. (which was a regression too.)
Change-Id: Id8eeb2737ffa2223acfbf9a8a30d957599c9db36
Diffstat (limited to 'src/com/android/incallui/InCallPresenter.java')
-rw-r--r-- | src/com/android/incallui/InCallPresenter.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/com/android/incallui/InCallPresenter.java b/src/com/android/incallui/InCallPresenter.java index d49859a3..bfff83fe 100644 --- a/src/com/android/incallui/InCallPresenter.java +++ b/src/com/android/incallui/InCallPresenter.java @@ -320,7 +320,7 @@ public class InCallPresenter implements CallList.Listener { /** * Brings the app into the foreground if possible. */ - public void bringToForeground() { + public void bringToForeground(boolean showDialpad) { // Before we bring the incall UI to the foreground, we check to see if: // 1. there is an activity // 2. the activity is not already in the foreground @@ -328,7 +328,7 @@ public class InCallPresenter implements CallList.Listener { if (isActivityStarted() && !isShowingInCallUi() && mInCallState != InCallState.NO_CALLS) { - showInCall(); + showInCall(showDialpad); } } @@ -400,7 +400,7 @@ public class InCallPresenter implements CallList.Listener { if (showCallUi) { Log.i(this, "Start in call UI"); - showInCall(); + showInCall(false); } else if (startStartupSequence) { Log.i(this, "Start Full Screen in call UI"); mStatusBarNotifier.updateNotificationAndLaunchIncomingCallUi(newState, mCallList); @@ -460,16 +460,19 @@ public class InCallPresenter implements CallList.Listener { } } - private void showInCall() { - mContext.startActivity(getInCallIntent()); + private void showInCall(boolean showDialpad) { + mContext.startActivity(getInCallIntent(showDialpad)); } - public Intent getInCallIntent() { + public Intent getInCallIntent(boolean showDialpad) { final Intent intent = new Intent(Intent.ACTION_MAIN, null); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS | Intent.FLAG_ACTIVITY_NO_USER_ACTION); intent.setClass(mContext, InCallActivity.class); + if (showDialpad) { + intent.putExtra(InCallActivity.SHOW_DIALPAD_EXTRA, true); + } return intent; } |