mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 03:12:15 +00:00
Fix: Hide Sort Order Icon instead of Sync Icon
This commit is contained in:
parent
7a36d943c0
commit
bafb2714cb
@ -528,12 +528,15 @@ class TabsFragment : ScreenFragment() {
|
||||
override fun onPageSelected(position: Int) {
|
||||
val source = ProductsFragment.Source.values()[position]
|
||||
updateUpdateNotificationBlocker(source)
|
||||
sortOrderMenu!!.first.isVisible = source.order
|
||||
syncRepositoriesMenuItem!!.setShowAsActionFlags(
|
||||
if (!source.order ||
|
||||
resources.configuration.screenWidthDp >= 400
|
||||
) MenuItem.SHOW_AS_ACTION_ALWAYS else 0
|
||||
)
|
||||
sortOrderMenu!!.first.apply {
|
||||
isVisible = source.order
|
||||
setShowAsActionFlags(
|
||||
if (!source.order ||
|
||||
resources.configuration.screenWidthDp >= 400
|
||||
) MenuItem.SHOW_AS_ACTION_ALWAYS else 0
|
||||
)
|
||||
}
|
||||
syncRepositoriesMenuItem!!.setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_ALWAYS)
|
||||
setSelectedTab(source)
|
||||
if (showSections && !source.sections) {
|
||||
showSections = false
|
||||
|
Loading…
x
Reference in New Issue
Block a user