mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 05:15:13 +02:00
Added logging
This commit is contained in:
@@ -75,7 +75,9 @@ public class MediaPlayerHelper {
|
||||
mediaPlayer.prepareAsync();
|
||||
|
||||
try {
|
||||
if (!sem.tryAcquire(duration, TimeUnit.SECONDS)) {
|
||||
boolean acquired = sem.tryAcquire(duration, TimeUnit.SECONDS);
|
||||
EntityLog.log(context, "Alarm acquired=" + acquired);
|
||||
if (!acquired) {
|
||||
mediaPlayer.stop();
|
||||
mediaPlayer.release();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user