summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaitanya Saggurthi <csaggurt@qti.qualcomm.com>2015-07-21 15:45:51 +0530
committerYorke Lee <yorkelee@google.com>2015-07-28 09:49:07 -0700
commitf8f94b2f55f9c63280aceb08876d9e02f90a6f71 (patch)
tree63bf0970db106061be9209d68f5389ccefa6eb3c
parent3c80805def993eef821931970723e2b927fdf552 (diff)
downloadInCallUI-f8f94b2f55f9c63280aceb08876d9e02f90a6f71.tar.gz
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
-rw-r--r--src/com/android/incallui/AnswerFragment.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/incallui/AnswerFragment.java b/src/com/android/incallui/AnswerFragment.java
index 50428d65..7c67719b 100644
--- a/src/com/android/incallui/AnswerFragment.java
+++ b/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();