Released incall wake lock at the call end
This commit is contained in:
parent
3cb669e3a3
commit
81639fe542
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue