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

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

IMS: fix ImsPhoneConnection wakelock stuck

Bug: 18965642

Change-Id: If708a0cde665fd9225138bf07db7d27e2cd36709
parent e1ca3096
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1313,6 +1313,7 @@ public final class ImsPhoneCallTracker extends CallTracker {
            }
            for (Connection c : mHandoverCall.mConnections) {
                ((ImsPhoneConnection)c).changeParent(mHandoverCall);
                ((ImsPhoneConnection)c).releaseWakeLock();
            }
        }
        if (call.getState().isAlive()) {
@@ -1333,11 +1334,6 @@ public final class ImsPhoneCallTracker extends CallTracker {
            transferHandoverConnections(mForegroundCall);
            transferHandoverConnections(mBackgroundCall);
            transferHandoverConnections(mRingingCall);
            // release wake lock hold
            ImsPhoneConnection con = mHandoverCall.getHandoverConnection();
            if (con != null) {
                con.releaseWakeLock();
            }
        }
    }