mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-05-07 17:57:54 +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) {
|
override fun onPageSelected(position: Int) {
|
||||||
val source = ProductsFragment.Source.values()[position]
|
val source = ProductsFragment.Source.values()[position]
|
||||||
updateUpdateNotificationBlocker(source)
|
updateUpdateNotificationBlocker(source)
|
||||||
sortOrderMenu!!.first.isVisible = source.order
|
sortOrderMenu!!.first.apply {
|
||||||
syncRepositoriesMenuItem!!.setShowAsActionFlags(
|
isVisible = source.order
|
||||||
|
setShowAsActionFlags(
|
||||||
if (!source.order ||
|
if (!source.order ||
|
||||||
resources.configuration.screenWidthDp >= 400
|
resources.configuration.screenWidthDp >= 400
|
||||||
) MenuItem.SHOW_AS_ACTION_ALWAYS else 0
|
) MenuItem.SHOW_AS_ACTION_ALWAYS else 0
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
syncRepositoriesMenuItem!!.setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_ALWAYS)
|
||||||
setSelectedTab(source)
|
setSelectedTab(source)
|
||||||
if (showSections && !source.sections) {
|
if (showSections && !source.sections) {
|
||||||
showSections = false
|
showSections = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user