Fixed title spinner showing up in unintended places
This commit is contained in:
parent
d86caf36ee
commit
27932e9c06
2 changed files with 1 additions and 4 deletions
|
@ -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 {
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
<include layout="@layout/library_grid_recycler"/>
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<eu.davidea.fastscroller.FastScroller
|
||||
android:id="@+id/fast_scroller"
|
||||
android:layout_width="wrap_content"
|
||||
|
|
Reference in a new issue