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

Commit 2f06e83a authored by Wenlu Wu's avatar Wenlu Wu Committed by android-build-merger
Browse files

Merge "Display incoming call when phone account selection dialog shows"

am: fdf68fbd

Change-Id: I0ea121445ef419e46da9a66ceba0c4673c49ca0e
parents 7fc24728 fdf68fbd
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -844,6 +844,12 @@ public class InCallActivity extends TransactionSafeActivity implements FragmentD
    }

    public void showAnswerFragment(boolean show) {
        // CallCardFragment is the parent fragment of AnswerFragment.
        // Must create the CallCardFragment first before creating
        // AnswerFragment if CallCardFragment is null.
        if (show && getCallCardFragment() == null) {
            showCallCardFragment(true);
        }
        showFragment(TAG_ANSWER_FRAGMENT, show, true);
    }

@@ -888,6 +894,12 @@ public class InCallActivity extends TransactionSafeActivity implements FragmentD
        if (mAnswerFragment != null) {
            mAnswerFragment.dismissPendingDialogs();
        }

        SelectPhoneAccountDialogFragment dialogFragment = (SelectPhoneAccountDialogFragment)
                getFragmentManager().findFragmentByTag(TAG_SELECT_ACCT_FRAGMENT);
        if (dialogFragment != null) {
            dialogFragment.dismiss();
        }
    }

    /**