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

Commit a1ce6671 authored by Ihab Awad's avatar Ihab Awad
Browse files

Automatically un-hold calls brought to the foreground

Bug: 17480900
Change-Id: I2018759d05fdb75794983e276c1c5c1d5a5724a6
parent 2fb76dd5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -934,7 +934,9 @@ public final class CallsManager extends Call.ListenerBase {
            Log.v(this, "Updating foreground call, %s -> %s.", mForegroundCall, newForegroundCall);
            Call oldForegroundCall = mForegroundCall;
            mForegroundCall = newForegroundCall;

            if (mForegroundCall != null && mForegroundCall.getState() == CallState.ON_HOLD) {
                mForegroundCall.unhold();
            }
            for (CallsManagerListener listener : mListeners) {
                listener.onForegroundCallChanged(oldForegroundCall, mForegroundCall);
            }