Released incall wake lock at the call end

This commit is contained in:
Erwan Croze 2016-09-12 16:27:23 +02:00
parent 3cb669e3a3
commit 81639fe542

View file

@ -1112,6 +1112,12 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
routeAudioToReceiver();
}
}
if (mIncallWakeLock != null && mIncallWakeLock.isHeld()) {
mIncallWakeLock.release();
Log.i("Last call ended: releasing incall (CPU only) wake lock");
} else {
Log.i("Last call ended: no incall (CPU only) wake lock were held");
}
}
}
if (state == State.CallUpdatedByRemote) {