From 669b608b31d468084bbae81ba8c51fec44814b18 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 17 Sep 2013 15:43:38 -0700 Subject: Fix regression: dialpad not being shown from dial intent Bug: 10804039 Change-Id: I4449a1bc7997738e39c87493d0d038870b19597b --- src/com/android/dialer/DialtactsActivity.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 468003806..4c747c95b 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -639,12 +639,15 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O return; } - if (mDialpadFragment != null && (phoneIsInUse() || isDialIntent(intent))) { - mDialpadFragment.setStartedFromNewIntent(true); - if (!mDialpadFragment.isVisible()) { - mInCallDialpadUp = true; + if (mDialpadFragment != null) { + final boolean phoneIsInUse = phoneIsInUse(); + if (phoneIsInUse || isDialIntent(intent)) { + mDialpadFragment.setStartedFromNewIntent(true); + if (phoneIsInUse && !mDialpadFragment.isVisible()) { + mInCallDialpadUp = true; + } + showDialpadFragment(false); } - showDialpadFragment(false); } } -- cgit v1.2.3