Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ba297f3 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Make AsyncPlayer.startSound catch all exceptions instead of only a few.

Two reasons for this:
- it's used in the system process
- it's run in a separate thread, so the user of AsyncPlayer cannot catch these exceptions
parent e379710c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -72,10 +72,8 @@ public class AsyncPlayer {
                Log.w(mTag, "Notification sound delayed by " + delay + "msecs");
            }
        }
        catch (IOException e) {
        catch (Exception e) {
            Log.w(mTag, "error loading sound for " + cmd.uri, e);
        } catch (IllegalStateException e) {
            Log.w(mTag, "IllegalStateException (content provider died?) " + cmd.uri, e);
        }
    }