mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-25 15:21:51 +01:00
More tracepot crashes
This commit is contained in:
parent
3e541a0500
commit
6b78112dd3
@ -208,7 +208,7 @@ class RecentsController(bundle: Bundle? = null) : BaseController(bundle),
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun setRefreshing(refresh: Boolean) {
|
fun setRefreshing(refresh: Boolean) {
|
||||||
swipe_refresh.isRefreshing = refresh
|
swipe_refresh?.isRefreshing = refresh
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onItemMove(fromPosition: Int, toPosition: Int) { }
|
override fun onItemMove(fromPosition: Int, toPosition: Int) { }
|
||||||
|
@ -131,7 +131,7 @@ class SourceController : NucleusController<SourcePresenter>(),
|
|||||||
ext_bottom_sheet.sheetBehavior?.addBottomSheetCallback(object : BottomSheetBehavior
|
ext_bottom_sheet.sheetBehavior?.addBottomSheetCallback(object : BottomSheetBehavior
|
||||||
.BottomSheetCallback() {
|
.BottomSheetCallback() {
|
||||||
override fun onSlide(bottomSheet: View, progress: Float) {
|
override fun onSlide(bottomSheet: View, progress: Float) {
|
||||||
shadow2.alpha = (1 - max(0f, progress)) * 0.25f
|
shadow2?.alpha = (1 - max(0f, progress)) * 0.25f
|
||||||
activity?.appbar?.elevation = max(progress * 15f,
|
activity?.appbar?.elevation = max(progress * 15f,
|
||||||
if (recycler.canScrollVertically(-1)) 15f else 0f)
|
if (recycler.canScrollVertically(-1)) 15f else 0f)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user