From 27932e9c06d725cc10a12154fab014af30a956a1 Mon Sep 17 00:00:00 2001 From: Jay Date: Sun, 8 Mar 2020 16:42:54 -0700 Subject: [PATCH] Fixed title spinner showing up in unintended places --- .../eu/kanade/tachiyomi/ui/library/LibraryListController.kt | 4 +--- app/src/main/res/layout/library_list_controller.xml | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryListController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryListController.kt index b2aaf7ec60..2d40139e2e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryListController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryListController.kt @@ -9,7 +9,6 @@ import android.view.View import android.view.ViewGroup import androidx.appcompat.view.ActionMode import androidx.appcompat.widget.PopupMenu -import androidx.coordinatorlayout.widget.CoordinatorLayout import androidx.core.math.MathUtils.clamp import androidx.recyclerview.widget.GridLayoutManager import androidx.recyclerview.widget.LinearLayoutManager @@ -34,7 +33,6 @@ import eu.kanade.tachiyomi.util.system.launchUI import eu.kanade.tachiyomi.util.view.inflate import eu.kanade.tachiyomi.util.view.scrollViewWith import eu.kanade.tachiyomi.util.view.snack -import eu.kanade.tachiyomi.util.view.updateLayoutParams import eu.kanade.tachiyomi.util.view.updatePaddingRelative import kotlinx.android.synthetic.main.filter_bottom_sheet.* import kotlinx.android.synthetic.main.library_grid_recycler.* @@ -236,7 +234,7 @@ class LibraryListController(bundle: Bundle? = null) : LibraryController(bundle), } adapter.isLongPressDragEnabled = canDrag() - val popupMenu = if (presenter.categories.size > 1) { + val popupMenu = if (presenter.categories.size > 1 && isCurrentController) { activity?.toolbar?.showSpinner() } else { diff --git a/app/src/main/res/layout/library_list_controller.xml b/app/src/main/res/layout/library_list_controller.xml index 052de96d3b..ea36431bfa 100644 --- a/app/src/main/res/layout/library_list_controller.xml +++ b/app/src/main/res/layout/library_list_controller.xml @@ -13,7 +13,6 @@ -