[Bug] File action sheet shows no actions at all for locked files
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 FileActionsBottomSheet.handleState() 开始,检查 displayActions() 和 displayLockInfo() 如何向工作表添加行。issue 指出了导致操作被跳过的调用顺序,并建议先显示操作,再显示锁定信息。锁定的文件同时显示常规操作和锁定信息时,即为完成;payload 未指定测试文件。
由索引模型根据 Issue 内容生成。
描述
Steps to reproduce
- Lock a file (e.g. open a document in the Text or OnlyOffice app, or use "Lock file" from another client).
- In the Android app, open the folder that contains the locked file.
- Tap the three-dot menu of that file.
Actual behaviour
The bottom sheet shows the file name and a "Locked by the app …" row, but no actions at all — not even edit, rename, download or delete. The sheet is short and cannot be expanded by dragging.
Expected behaviour
The regular action list is shown, plus the lock information row.
Cause
FileActionsBottomSheet.handleState() calls displayLockInfo() before displayActions():
if (state.lockInfo != null) {
displayLockInfo(state.lockInfo)
}
displayActions(state.titleFile, state.actions)
displayActions() starts with if (binding.fileActionsList.isNotEmpty()) return, so as soon as the lock row has been appended, every action is skipped. Only the lock row ends up in the sheet.
Suggested fix
Render the actions first and append the lock info afterwards:
displayActions(state.titleFile, state.actions)
if (state.lockInfo != null) {
displayLockInfo(state.lockInfo)
}
This is also what makes the unlock action reachable — see #17838.
Environment
- Nextcloud Android 35.0.1 (Play) and current master, Android 16, Pixel 9 Pro
- Server: Nextcloud 34 (AIO), files_lock 34.0.1
🤖 Generated with Claude Code
- 主要语言
- Kotlin
- 星标
- 5.6k
- 派生
- 2k
- 平均合并
- 2 天 11 小时
- 30 天内合并 PR
- 97
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/android 的其他 Issue
-
[Bug] Lock owned by another client (e.g. Text app) cannot be unlocked from the app可能已有人在做 @falkloewert 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Modification time is not preserved when uploading MediaStore content via Android share可能已有人在做 @alperozturk96 于 27 天前认领。 未关闭3. to review bug feature: transfers
难度 2/5 1-3 小时 新手友好度 84/100
nextcloud/android#17675 · 4 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
0. Needs triage
难度 2/5 1-3 小时 新手友好度 84/100
nextcloud/android#17533 · 1 条评论 ·
维护者通常 1 天内回复
-
RC 34.1.0-01: Duplicated wording in creation menu — "New" prefix + creator name produces "New New document" ("Neu Neues Dokument")可能已有人在做 @ChristianTannheimer 于 93 天前认领。 未关闭0. Needs triage bug
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
0. Needs triage bug
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
查看 nextcloud/android 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
commons-app/apps-android-commons#7072 ·
维护者通常 1 天内回复
-
bug ci good first issue help wanted severity: medium
难度 2/5 1-3 小时 新手友好度 65/100
dhananjay-nautiyal/music#17 · 1 条评论 ·
维护者通常 1 天内回复
-
Watch Next: last engagement time is in seconds for played items and in milliseconds for the others未关闭
难度 1/5 1 小时以内 新手友好度 79/100
damontecres/Wholphin#2112 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
beppe2880/opencode-mobile#60 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100