From 47fcc3a2947be85a57086f7621ef1bdfcbd8a404 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 13 Sep 2021 20:57:56 -0700 Subject: Create initial hilt tests --- .../com/pitchedapps/frost/activities/ImageActivity.kt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'app/src/main/kotlin') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt index c5b8bdaa..e3b607a3 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt @@ -137,8 +137,9 @@ class ImageActivity : KauBaseActivity() { lateinit var binding: ActivityImageBinding private var bottomBehavior: BottomSheetBehavior? = null - private val baseBackgroundColor = if (prefs.blackMediaBg) Color.BLACK - else themeProvider.bgColor.withMinAlpha(235) + private val baseBackgroundColor: Int + get() = if (prefs.blackMediaBg) Color.BLACK + else themeProvider.bgColor.withMinAlpha(235) private fun loadError(e: Throwable) { if (e.message?.contains("") == true) { @@ -226,11 +227,11 @@ class ImageActivity : KauBaseActivity() { setState(FabStates.SHARE) } imagePhoto.setOnImageEventListener(object : - SubsamplingScaleImageView.DefaultOnImageEventListener() { - override fun onImageLoadError(e: Exception) { - loadError(e) - } - }) + SubsamplingScaleImageView.DefaultOnImageEventListener() { + override fun onImageLoadError(e: Exception) { + loadError(e) + } + }) activityThemer.setFrostColors { themeWindow = false } -- cgit v1.2.3