summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-05-11 12:00:15 -0700
committerAndrew Lee <anwlee@google.com>2015-05-11 12:02:34 -0700
commitdf3ef3fc3d10573507c6451bffd1f55dfcb475dd (patch)
tree71f08ed563afff44cec82177723fe98c33a358b1 /InCallUI
parentaab740c45d80535a245723a3490ba11193ba43c4 (diff)
Don't use static instance of EmergencyCallListener.
There's a couple ways to fix this, but this seemed to be the most straightforward one. Basically, we want the values for the emergency call listener (ie. the cached isEmergency value) to reset across different displays of the InCall UI. Bug: 21027909 Change-Id: I0b42873e3fa52ee2fc8ee98ee876caf31ec98883
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/CallCardPresenter.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java
index b233ad56b..eed92cf59 100644
--- a/InCallUI/src/com/android/incallui/CallCardPresenter.java
+++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java
@@ -65,12 +65,11 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi>
public void onCallUpdated(BaseFragment fragment, boolean isEmergency);
}
- private static final EmergencyCallListener mEmergencyCallListener =
- ObjectFactory.newEmergencyCallListener();
-
private static final String TAG = CallCardPresenter.class.getSimpleName();
private static final long CALL_TIME_UPDATE_INTERVAL_MS = 1000;
+ private final EmergencyCallListener mEmergencyCallListener = ObjectFactory.newEmergencyCallListener();
+
private Call mPrimary;
private Call mSecondary;
private ContactCacheEntry mPrimaryContactInfo;