mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-20 06:28:27 +00:00
Keep screen off after end of audio playback
Fixes #6654 Closes #6669 // FREEBIE
This commit is contained in:
parent
170b869a22
commit
512c6dc581
@ -133,7 +133,10 @@ public class AudioSlidePlayer implements SensorEventListener {
|
||||
}
|
||||
|
||||
sensorManager.unregisterListener(AudioSlidePlayer.this);
|
||||
if (wakeLock != null && wakeLock.isHeld()) wakeLock.release();
|
||||
|
||||
if (wakeLock != null && wakeLock.isHeld()) {
|
||||
wakeLock.release(PowerManager.RELEASE_FLAG_WAIT_FOR_NO_PROXIMITY);
|
||||
}
|
||||
}
|
||||
|
||||
notifyOnStop();
|
||||
@ -157,7 +160,10 @@ public class AudioSlidePlayer implements SensorEventListener {
|
||||
}
|
||||
|
||||
sensorManager.unregisterListener(AudioSlidePlayer.this);
|
||||
if (wakeLock != null && wakeLock.isHeld()) wakeLock.release();
|
||||
|
||||
if (wakeLock != null && wakeLock.isHeld()) {
|
||||
wakeLock.release(PowerManager.RELEASE_FLAG_WAIT_FOR_NO_PROXIMITY);
|
||||
}
|
||||
}
|
||||
|
||||
notifyOnStop();
|
||||
|
Loading…
x
Reference in New Issue
Block a user