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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user