From 6b78112dd3f359fa2eb21f61a425f91626c07b61 Mon Sep 17 00:00:00 2001 From: Jay Date: Fri, 1 May 2020 16:43:27 -0400 Subject: [PATCH] More tracepot crashes --- .../java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt | 2 +- .../main/java/eu/kanade/tachiyomi/ui/source/SourceController.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt index 48bb9001f9..8b114f1e5e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt @@ -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) { } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/source/SourceController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/source/SourceController.kt index 89bc9be4d9..f92ab3fbdd 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/source/SourceController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/source/SourceController.kt @@ -131,7 +131,7 @@ class SourceController : NucleusController(), 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)