diff options
author | Chaitanya Saggurthi <csaggurt@qti.qualcomm.com> | 2015-07-21 15:45:51 +0530 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-07-28 09:49:07 -0700 |
commit | 7632fdfb271be341f9300888721cf410e5409161 (patch) | |
tree | 9b188511c334dab94d2e00900967cd9f49e2a513 /InCallUI/src/com/android/incallui/AnswerFragment.java | |
parent | e0e5c1ded8037b7be1712891a471b68c6e2576c3 (diff) |
InCallUI not dismissing after end call is clicked.
In MT InCallScreen, the customMessage dialog
which appears when user tries to reject a call
with message, is not set to null when user
cancels the dialog.
InCallUIActvity is not finished if there is any
pending dialog which is not null and hence this
issue is seen.
Set the dialog variable to null once the dialog
is cancelled by the user.
Bug: 22254547
Change-Id: I86d314461c760387cb5f8099a01da9afe4a79085
Diffstat (limited to 'InCallUI/src/com/android/incallui/AnswerFragment.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/AnswerFragment.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/AnswerFragment.java b/InCallUI/src/com/android/incallui/AnswerFragment.java index 50428d650..7c67719b0 100644 --- a/InCallUI/src/com/android/incallui/AnswerFragment.java +++ b/InCallUI/src/com/android/incallui/AnswerFragment.java @@ -297,6 +297,13 @@ public class AnswerFragment extends BaseFragment<AnswerPresenter, AnswerPresente getPresenter().onDismissDialog(); } }) + .setOnCancelListener(new DialogInterface.OnCancelListener() { + @Override + public void onCancel(DialogInterface dialogInterface) { + dismissCustomMessagePopup(); + getPresenter().onDismissDialog(); + } + }) .setTitle(R.string.respond_via_sms_custom_message); mCustomMessagePopup = builder.create(); |