Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 669b608b authored by Yorke Lee's avatar Yorke Lee
Browse files

Fix regression: dialpad not being shown from dial intent

Bug: 10804039
Change-Id: I4449a1bc7997738e39c87493d0d038870b19597b
parent e40ea13d
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -639,14 +639,17 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
            return;
        }

        if (mDialpadFragment != null && (phoneIsInUse() || isDialIntent(intent))) {
        if (mDialpadFragment != null) {
            final boolean phoneIsInUse = phoneIsInUse();
            if (phoneIsInUse || isDialIntent(intent)) {
                mDialpadFragment.setStartedFromNewIntent(true);
            if (!mDialpadFragment.isVisible()) {
                if (phoneIsInUse && !mDialpadFragment.isVisible()) {
                    mInCallDialpadUp = true;
                }
                showDialpadFragment(false);
            }
        }
    }

    @Override
    public void onNewIntent(Intent newIntent) {