Check the videocall wavelock is held before releasing it
This commit is contained in:
parent
b92df3005e
commit
e1ffbe85c9
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ public class VideoCallActivity extends Activity {
|
||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
Log.d(tag, "onPause VideoCallActivity");
|
Log.d(tag, "onPause VideoCallActivity");
|
||||||
mWakeLock.release();
|
if (mWakeLock.isHeld()) mWakeLock.release();
|
||||||
super.onPause();
|
super.onPause();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue