summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Bird <sbird@cyngn.com>2016-07-12 14:48:28 -0700
committerStephen Bird <sbird@cyngn.com>2016-07-12 14:49:27 -0700
commit5d62f58682caffe6e42d1693e03760d32ece354c (patch)
tree11500148327d76c806275b9a743677c17869b2f1
parent8e571534d5060e970b561cca2e2a951d46027b79 (diff)
downloadpackages_apps_InCallUI-5d62f58682caffe6e42d1693e03760d32ece354c.tar.gz
packages_apps_InCallUI-5d62f58682caffe6e42d1693e03760d32ece354c.tar.bz2
packages_apps_InCallUI-5d62f58682caffe6e42d1693e03760d32ece354c.zip
[4/4] Add cancel callback for BlockContactDialogCallbacks
When a dialog gets cancelled on the incall screen we need to reset the glowpad otherwise the ui gets into a strange state. Change-Id: I1bd73152e2e38bb64d35fa2dd42933fe08a077a8 Ticket: CYNGNOS-3111
-rw-r--r--src/com/android/incallui/AnswerFragment.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/incallui/AnswerFragment.java b/src/com/android/incallui/AnswerFragment.java
index 2dfba187..b7d79c58 100644
--- a/src/com/android/incallui/AnswerFragment.java
+++ b/src/com/android/incallui/AnswerFragment.java
@@ -336,6 +336,7 @@ public class AnswerFragment extends BaseFragment<AnswerPresenter, AnswerPresente
public void onCancel(DialogInterface dialogInterface) {
if (mGlowpad != null) {
mGlowpad.startPing();
+ mGlowpad.reset(false);
}
dismissCannedResponsePopup();
getPresenter().onDismissDialog();
@@ -380,6 +381,9 @@ public class AnswerFragment extends BaseFragment<AnswerPresenter, AnswerPresente
if (mCustomMessagePopup != null) {
mCustomMessagePopup.dismiss();
mCustomMessagePopup = null;
+ if (mGlowpad != null) {
+ mGlowpad.reset(false);
+ }
}
}
@@ -528,6 +532,13 @@ public class AnswerFragment extends BaseFragment<AnswerPresenter, AnswerPresente
}
@Override
+ public void onBlockCancelled() {
+ if (mGlowpad != null) {
+ mGlowpad.reset(false);
+ }
+ }
+
+ @Override
public void onBlockSelected(boolean notifyLookupProvider) {
getPresenter().onBlock(notifyLookupProvider);
}