Skip to content

Rewrite FilesDesign#77

Merged
Goooler merged 9 commits into
trunkfrom
rewrite-files-design
Apr 20, 2026
Merged

Rewrite FilesDesign#77
Goooler merged 9 commits into
trunkfrom
rewrite-files-design

Conversation

@Goooler
Copy link
Copy Markdown
Owner

@Goooler Goooler commented Apr 20, 2026

Refs #65.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR rewrites the Files screen UI from RecyclerView/DataBinding XML to Jetpack Compose as part of the broader Compose migration (refs #65).

Changes:

  • Replaced FilesDesign’s XML/DataBinding + RecyclerView.Adapter implementation with a Compose-based FilesScreen (including bottom-sheet actions).
  • Removed the now-unused Files-related layout XMLs and FileAdapter.
  • Updated theme color scheme container surface colors and adjusted activity wiring/manifest entry for FilesActivity.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
design/src/main/res/layout/dialog_files_menu.xml Removed obsolete DataBinding bottom-sheet menu layout (replaced by Compose ModalBottomSheet).
design/src/main/res/layout/design_files.xml Removed obsolete DataBinding Files screen layout (replaced by Compose scaffold + list).
design/src/main/res/layout/adapter_file.xml Removed obsolete DataBinding row layout (replaced by Compose FileItem).
design/src/main/java/com/github/kr328/clash/design/ui/theme/Theme.kt Added Material3 surfaceContainer* colors to the app color schemes.
design/src/main/java/com/github/kr328/clash/design/adapter/FileAdapter.kt Removed obsolete RecyclerView adapter (list is now LazyColumn).
design/src/main/java/com/github/kr328/clash/design/FilesDesign.kt New Compose implementation of Files UI, including bottom-sheet actions and elapsed-time display.
app/src/main/java/com/github/kr328/clash/FilesActivity.kt Updated configurationEditable wiring to the new updateConfigurationEditable(...) API.
app/src/main/AndroidManifest.xml Updated FilesActivity manifest entry (label/configChanges removed).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread design/src/main/java/com/github/kr328/clash/design/FilesDesign.kt Outdated
Comment thread design/src/main/java/com/github/kr328/clash/design/FilesDesign.kt Outdated
Comment thread app/src/main/AndroidManifest.xml
Goooler and others added 2 commits April 20, 2026 12:06
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Goooler Goooler enabled auto-merge (squash) April 20, 2026 04:13
@Goooler Goooler merged commit beb812a into trunk Apr 20, 2026
1 check passed
@Goooler Goooler deleted the rewrite-files-design branch April 20, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants