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:
Marco Nelissen
2010-02-26 09:30:20 -08:00
parent e379710cc5
commit 4ba297f3ed

View File

@@ -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);
}
}