Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df3ef3fc authored by Andrew Lee's avatar Andrew Lee
Browse files

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
parent aab740c4
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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;