Use SHOW_AS_ACTION_IF_ROOM tag
This commit is contained in:
parent
3c7ba85c26
commit
5515cd379f
@ -102,7 +102,7 @@ class OtherSessionsFragment :
|
|||||||
} else {
|
} else {
|
||||||
viewState.devices.invoke()?.isNotEmpty().orFalse()
|
viewState.devices.invoke()?.isNotEmpty().orFalse()
|
||||||
}
|
}
|
||||||
val showAsActionFlag = if (viewState.isSelectModeEnabled) MenuItem.SHOW_AS_ACTION_ALWAYS else MenuItem.SHOW_AS_ACTION_NEVER
|
val showAsActionFlag = if (viewState.isSelectModeEnabled) MenuItem.SHOW_AS_ACTION_IF_ROOM else MenuItem.SHOW_AS_ACTION_NEVER
|
||||||
multiSignoutItem.setShowAsAction(showAsActionFlag or MenuItem.SHOW_AS_ACTION_WITH_TEXT)
|
multiSignoutItem.setShowAsAction(showAsActionFlag or MenuItem.SHOW_AS_ACTION_WITH_TEXT)
|
||||||
changeTextColorOfDestructiveAction(multiSignoutItem)
|
changeTextColorOfDestructiveAction(multiSignoutItem)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user