Catch throwable

This commit is contained in:
Martin Fietz 2015-12-13 22:23:14 +01:00
parent bca8b83140
commit 3997982e26
2 changed files with 4 additions and 4 deletions

View File

@ -810,8 +810,8 @@ public class PlaybackService extends Service {
.centerCrop()
.into(iconSize, iconSize)
.get();
} catch(Exception e) {
Log.e(TAG, Log.getStackTraceString(e));
} catch(Throwable tr) {
Log.e(TAG, Log.getStackTraceString(tr));
}
}
}

View File

@ -306,8 +306,8 @@ public class PlaybackServiceMediaPlayer implements SharedPreferences.OnSharedPre
.into(display.getWidth(), display.getHeight())
.get();
builder.putBitmap(MediaMetadataCompat.METADATA_KEY_ART, art);
} catch (Exception e) {
Log.e(TAG, Log.getStackTraceString(e));
} catch (Throwable tr) {
Log.e(TAG, Log.getStackTraceString(tr));
}
}
mediaSession.setMetadata(builder.build());