Skip to content

Comments

manager: Fix some recomposition issues#3198

Merged
YuKongA merged 2 commits intomainfrom
yukonga-patch01
Feb 3, 2026
Merged

manager: Fix some recomposition issues#3198
YuKongA merged 2 commits intomainfrom
yukonga-patch01

Conversation

@YuKongA
Copy link
Collaborator

@YuKongA YuKongA commented Feb 3, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 3, 2026 14:10
Copy link
Contributor

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 aims to fix recomposition issues in the KernelSU manager by updating dependencies, improving initialization logic, and removing unnecessary remember() calls that were causing excessive recompositions.

Changes:

  • Updated several Compose and UI library versions to address recomposition bugs
  • Added isInitialized state tracking to prevent unnecessary re-initialization of app and module lists on recomposition
  • Removed unnecessary remember() wrappers around color derivations that were already stable
  • Improved search bar UX by clearing search text immediately when collapsing

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
manager/gradle/libs.versions.toml Updated compose-bom, activity-compose, navigation3, navigationevent, miuix, and capsule to newer versions; removed workaround comment for miuix-navigation3-ui
manager/app/src/main/java/me/weishu/kernelsu/ui/viewmodel/ModuleViewModel.kt Simplified fetchModuleList() by removing conditional logic and direct syncModuleUpdateInfo() call
manager/app/src/main/java/me/weishu/kernelsu/ui/util/module/Shortcut.kt Added explicit import for WebUIActivity instead of using fully qualified name
manager/app/src/main/java/me/weishu/kernelsu/ui/screen/SuperUser.kt Added isInitialized tracking and removed unnecessary remember() calls for color values and tags list
manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Module.kt Added isInitialized tracking, removed LaunchedEffect(modules) block, moved listState declaration, and made parameter naming explicit
manager/app/src/main/java/me/weishu/kernelsu/ui/screen/AppProfile.kt Reformatted derivedStateOf and removed unnecessary parentheses from enum class declaration
manager/app/src/main/java/me/weishu/kernelsu/ui/component/SuperSearchBar.kt Added immediate search text clearing when collapsing search for better UX

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

@YuKongA YuKongA merged commit c95888f into main Feb 3, 2026
15 checks passed
@YuKongA YuKongA deleted the yukonga-patch01 branch February 3, 2026 14:36
KOWX712 pushed a commit to KOWX712/KernelSU that referenced this pull request Feb 4, 2026
PhuScam pushed a commit to PhuScam/KernelSU that referenced this pull request Feb 5, 2026
PhuScam pushed a commit to PhuScam/KernelSU that referenced this pull request Feb 18, 2026
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.

1 participant