mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
Prevent having double entries after rotate
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
8e86617177
commit
1ecbf84505
1 changed files with 2 additions and 0 deletions
|
@ -199,6 +199,8 @@ class FileActionsBottomSheet : BottomSheetDialogFragment(), Injectable {
|
|||
private fun displayActions(
|
||||
actions: List<FileAction>
|
||||
) {
|
||||
binding.fileActionsList.removeAllViews()
|
||||
|
||||
actions.forEach { action ->
|
||||
val view = inflateActionView(action)
|
||||
binding.fileActionsList.addView(view)
|
||||
|
|
Loading…
Reference in a new issue