diff options
author | Wenlu Wu <wenlu.xa.wu@sonymobile.com> | 2017-01-06 03:21:06 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-01-06 03:21:06 +0000 |
commit | 2f06e83ade3ca65568fcf8115b3fe6a5ace99427 (patch) | |
tree | f4b516c0aec4cdeb42ec2d0b281b5c52f6b8fca7 /InCallUI/src/com/android/incallui/InCallActivity.java | |
parent | 7fc24728ccc2171d513fbf50533f107daba89e8c (diff) | |
parent | fdf68fbd0b17879ad7d8dfd06b58ba182e00a0b7 (diff) |
Merge "Display incoming call when phone account selection dialog shows"
am: fdf68fbd0b
Change-Id: I0ea121445ef419e46da9a66ceba0c4673c49ca0e
Diffstat (limited to 'InCallUI/src/com/android/incallui/InCallActivity.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallActivity.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java index eca79f8a7..abbdf4679 100644 --- a/InCallUI/src/com/android/incallui/InCallActivity.java +++ b/InCallUI/src/com/android/incallui/InCallActivity.java @@ -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(); + } } /** |