mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 05:25:08 +01:00
Remove unneeded "this" call on source controller
and minor clean up on it
This commit is contained in:
parent
d846033fcf
commit
8e9f0537a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user