summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2015-12-07 23:05:02 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-12-07 23:05:02 +0000
commit61ef815ad28b4924f0667a55cd16bf16f349c508 (patch)
tree15af2e3d06cfbcf366f4e63e0566f9c9356b87b4
parent00f2bebbf90473aa946b6d803a79aaf3c611249d (diff)
parentfa0c573d689a16401f1bf801d93b7b37d2380c5c (diff)
Fix issue where upgrade request UX does not show.
am: 60215f1065 * commit '60215f106537e769c1e69d549de9a46364c1603c': Fix issue where upgrade request UX does not show.
-rw-r--r--InCallUI/src/com/android/incallui/AnswerPresenter.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/AnswerPresenter.java b/InCallUI/src/com/android/incallui/AnswerPresenter.java
index 2049e6cff..109f29f5b 100644
--- a/InCallUI/src/com/android/incallui/AnswerPresenter.java
+++ b/InCallUI/src/com/android/incallui/AnswerPresenter.java
@@ -48,6 +48,7 @@ public class AnswerPresenter extends Presenter<AnswerPresenter.AnswerUi>
@Override
public void onUiShowing(boolean showing) {
if (showing) {
+ CallList.getInstance().addListener(this);
final CallList calls = CallList.getInstance();
Call call;
call = calls.getIncomingCall();
@@ -60,6 +61,7 @@ public class AnswerPresenter extends Presenter<AnswerPresenter.AnswerUi>
processVideoUpgradeRequestCall(call);
}
} else {
+ CallList.getInstance().removeListener(this);
// This is necessary because the activity can be destroyed while an incoming call exists.
// This happens when back button is pressed while incoming call is still being shown.
if (mCallId != null) {