Fix possible crash when trying to delete a genre
This commit is contained in:
parent
a5630b18a0
commit
95bc75b2bf
1 changed files with 2 additions and 1 deletions
|
|
@ -37,7 +37,8 @@ public class GenreLoader {
|
|||
// try to remove the empty genre from the media store
|
||||
try {
|
||||
context.getContentResolver().delete(Genres.EXTERNAL_CONTENT_URI, Genres._ID + " == " + genre.id, null);
|
||||
} catch (IllegalArgumentException | UnsupportedOperationException ignored) {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
// nothing we can do then
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue