Style fix

This commit is contained in:
tzugen 2021-10-12 14:53:55 +02:00
parent eff1a714e2
commit aea2e6baef
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930

View File

@ -107,7 +107,6 @@ class AlbumRowAdapter(
/** /**
* Handles the star / unstar action for an album * Handles the star / unstar action for an album
*/ */
@Suppress("TooGenericExceptionCaught")
private fun onStarClick(entry: MusicDirectory.Entry, star: ImageView) { private fun onStarClick(entry: MusicDirectory.Entry, star: ImageView) {
entry.starred = !entry.starred entry.starred = !entry.starred
star.setImageDrawable(if (entry.starred) starDrawable else starHollowDrawable) star.setImageDrawable(if (entry.starred) starDrawable else starHollowDrawable)
@ -128,8 +127,8 @@ class AlbumRowAdapter(
null null
) )
} }
} catch (exception: Exception) { } catch (all: Exception) {
Timber.e(exception) Timber.e(all)
} }
}.start() }.start()
} }