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

Commit 97fba207 authored by Libin.Tang@motorola.com's avatar Libin.Tang@motorola.com Committed by Etan Cohen
Browse files

IMS: release the imsphoneconnection wakelock when handover occurs from volte to cs.

Bug: 17469563
Change-Id: I3652de773da0398cb9d7455d0c82e6c9504171af
parent b701a7fa
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1215,6 +1215,12 @@ public final class ImsPhoneCallTracker extends CallTracker {
            } else if (mBackgroundCall.getConnections().size() > 0) {
                mHandoverCall.switchWith(mBackgroundCall);
            }

            // release wake lock hold
            ImsPhoneConnection con = mHandoverCall.getHandoverConnection();
            if (con != null) {
                con.releaseWakeLock();
            }
        }
    }

+1 −1
Original line number Diff line number Diff line
@@ -544,7 +544,7 @@ public class ImsPhoneConnection extends Connection {
        mPartialWakeLock.acquire();
    }

    private void
    void
    releaseWakeLock() {
        synchronized(mPartialWakeLock) {
            if (mPartialWakeLock.isHeld()) {