Check the videocall wavelock is held before releasing it

This commit is contained in:
Guillaume Beraudo 2010-12-10 09:12:44 +01:00
parent b92df3005e
commit e1ffbe85c9

View file

@ -188,7 +188,7 @@ public class VideoCallActivity extends Activity {
@Override
protected void onPause() {
Log.d(tag, "onPause VideoCallActivity");
mWakeLock.release();
if (mWakeLock.isHeld()) mWakeLock.release();
super.onPause();
}