Remove unneeded "this" call on source controller

and minor clean up on it
This commit is contained in:
Jays2Kings 2021-03-24 02:05:07 -04:00
parent d846033fcf
commit 8e9f0537a4

View File

@ -255,7 +255,6 @@ class SourceController :
selectedColor, selectedColor,
progress) progress)
) )
val pad = bottomBar.translationY - bottomBar.height
ext_bottom_sheet.sheet_layout.backgroundTintList = ColorStateList.valueOf( ext_bottom_sheet.sheet_layout.backgroundTintList = ColorStateList.valueOf(
ColorUtils.blendARGB( ColorUtils.blendARGB(
@ -272,7 +271,7 @@ class SourceController :
val padding = max( val padding = max(
(-pad).toInt(), (-pad).toInt(),
if (ext_bottom_sheet.sheetBehavior.isExpanded()) 0 else if (ext_bottom_sheet.sheetBehavior.isExpanded()) 0 else
this@SourceController.view?.rootWindowInsets?.systemWindowInsetBottom ?: 0 view?.rootWindowInsets?.systemWindowInsetBottom ?: 0
) )
shadow2.translationY = pad shadow2.translationY = pad
ext_bottom_sheet.sheetBehavior?.peekHeight = 58.spToPx + padding ext_bottom_sheet.sheetBehavior?.peekHeight = 58.spToPx + padding