浏览代码

Prevent having double entries after rotate

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 2 年之前
父节点
当前提交
1ecbf84505
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/src/main/java/com/nextcloud/ui/fileactions/FileActionsBottomSheet.kt

+ 2 - 0
app/src/main/java/com/nextcloud/ui/fileactions/FileActionsBottomSheet.kt

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