mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 05:51:53 +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,
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user