1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 13:44:40 +00:00

Added logging

This commit is contained in:
M66B 2024-06-12 17:42:15 +02:00
parent b10c917e54
commit fb1e8f5e29

View file

@ -91,6 +91,8 @@ public class MediaPlayerHelper {
sem = new Semaphore(0);
}
Log.i("Playing sound=" + uri);
AudioAttributes attrs = new AudioAttributes.Builder()
.setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)
.setUsage(alarm ? AudioAttributes.USAGE_ALARM : AudioAttributes.USAGE_NOTIFICATION)
@ -157,6 +159,8 @@ public class MediaPlayerHelper {
nm.cancel("alarm", 1);
}
Log.i("Played sound=" + uri);
synchronized (lock) {
sem = null;
}