mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Added logging
This commit is contained in:
parent
b10c917e54
commit
fb1e8f5e29
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue