Skip to content

Commit

Permalink
Use SHOW_AS_ACTION_IF_ROOM tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime NATUREL committed Nov 4, 2022
1 parent e866d3b commit ef8c0a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit ef8c0a5

Please sign in to comment.