Prevent having double entries after rotate

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2023-05-23 15:47:56 +02:00
parent 8e86617177
commit 1ecbf84505
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -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)