From 8e9f0537a4a214686720c869195e53eaa91e2e2f Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Wed, 24 Mar 2021 02:05:07 -0400 Subject: [PATCH] Remove unneeded "this" call on source controller and minor clean up on it --- .../java/eu/kanade/tachiyomi/ui/source/SourceController.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/source/SourceController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/source/SourceController.kt index e3c5a825ac..18c7400372 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/source/SourceController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/source/SourceController.kt @@ -255,7 +255,6 @@ class SourceController : selectedColor, progress) ) - val pad = bottomBar.translationY - bottomBar.height ext_bottom_sheet.sheet_layout.backgroundTintList = ColorStateList.valueOf( ColorUtils.blendARGB( @@ -272,7 +271,7 @@ class SourceController : val padding = max( (-pad).toInt(), if (ext_bottom_sheet.sheetBehavior.isExpanded()) 0 else - this@SourceController.view?.rootWindowInsets?.systemWindowInsetBottom ?: 0 + view?.rootWindowInsets?.systemWindowInsetBottom ?: 0 ) shadow2.translationY = pad ext_bottom_sheet.sheetBehavior?.peekHeight = 58.spToPx + padding