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

Commit f6a3e266 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

am: 2f06e83a

Change-Id: I782d4bed3ad3150d0f5b4b87b687d923ca913e68
parents 85905081 2f06e83a
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();
        }
    }

    /**