mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-31 11:24:58 +01:00
Use SHOW_AS_ACTION_IF_ROOM tag
This commit is contained in:
parent
3c7ba85c26
commit
5515cd379f
@ -102,7 +102,7 @@ class OtherSessionsFragment :
|
||||
} else {
|
||||
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)
|
||||
changeTextColorOfDestructiveAction(multiSignoutItem)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user