From 2310e8c1d6fd3e55755263c0f1ba09aebba6d1bb Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Sun, 5 Sep 2021 19:10:52 +0200 Subject: [PATCH] Made ``hideNewItemsLoaded`` more null safe --- app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt b/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt index 13bc8e9de..e65661725 100644 --- a/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt +++ b/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt @@ -640,7 +640,7 @@ class FeedFragment : BaseStateFragment() { execOnEnd = { // Make the layout invisible so that the onScroll toTop method // only does necessary work - feedBinding.newItemsLoadedLayout.isVisible = false + feedBinding?.newItemsLoadedLayout?.isVisible = false } ) } else {