More tracepot crashes

This commit is contained in:
Jay 2020-05-01 16:43:27 -04:00
parent 3e541a0500
commit 6b78112dd3
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ class RecentsController(bundle: Bundle? = null) : BaseController(bundle),
}
fun setRefreshing(refresh: Boolean) {
swipe_refresh.isRefreshing = refresh
swipe_refresh?.isRefreshing = refresh
}
override fun onItemMove(fromPosition: Int, toPosition: Int) { }

View File

@ -131,7 +131,7 @@ class SourceController : NucleusController<SourcePresenter>(),
ext_bottom_sheet.sheetBehavior?.addBottomSheetCallback(object : BottomSheetBehavior
.BottomSheetCallback() {
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,
if (recycler.canScrollVertically(-1)) 15f else 0f)