From aea2e6baef3df5b937d555c30060ec2b7371a91b Mon Sep 17 00:00:00 2001 From: tzugen Date: Tue, 12 Oct 2021 14:53:55 +0200 Subject: [PATCH] Style fix --- .../kotlin/org/moire/ultrasonic/fragment/AlbumRowAdapter.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/AlbumRowAdapter.kt b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/AlbumRowAdapter.kt index 7935c2ad..c9dcbabe 100644 --- a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/AlbumRowAdapter.kt +++ b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/AlbumRowAdapter.kt @@ -107,7 +107,6 @@ class AlbumRowAdapter( /** * Handles the star / unstar action for an album */ - @Suppress("TooGenericExceptionCaught") private fun onStarClick(entry: MusicDirectory.Entry, star: ImageView) { entry.starred = !entry.starred star.setImageDrawable(if (entry.starred) starDrawable else starHollowDrawable) @@ -128,8 +127,8 @@ class AlbumRowAdapter( null ) } - } catch (exception: Exception) { - Timber.e(exception) + } catch (all: Exception) { + Timber.e(all) } }.start() }