bug fix
This commit is contained in:
parent
fa966d2a2d
commit
51d8da6fe5
1 changed files with 2 additions and 2 deletions
|
@ -329,11 +329,11 @@ public class VideoPlayer extends AppCompatActivity {
|
||||||
@Override
|
@Override
|
||||||
|
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
if (!mWifiLock.isHeld()) {
|
if (mWifiLock.isHeld()) {
|
||||||
mWifiLock.release();
|
mWifiLock.release();
|
||||||
//System.out.println("WifiLock acquired");
|
//System.out.println("WifiLock acquired");
|
||||||
}
|
}
|
||||||
if (!mWakeLock.isHeld()) {
|
if (mWakeLock.isHeld()) {
|
||||||
mWakeLock.release();
|
mWakeLock.release();
|
||||||
//System.out.println("WakeLock acquired");
|
//System.out.println("WakeLock acquired");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue