Skip to content

manager: Refactor Markdown composable to use FrameLayout#3059

Merged
aviraxp merged 4 commits into
mainfrom
aviraxp-patch-1
Dec 9, 2025
Merged

manager: Refactor Markdown composable to use FrameLayout#3059
aviraxp merged 4 commits into
mainfrom
aviraxp-patch-1

Conversation

@aviraxp

@aviraxp aviraxp commented Dec 9, 2025

Copy link
Copy Markdown
Collaborator

Copilot AI review requested due to automatic review settings December 9, 2025 15:28
@aviraxp aviraxp changed the title Aviraxp patch 1 manager: Refactor Markdown composable to use FrameLayout Dec 9, 2025
@aviraxp aviraxp requested a review from YuKongA December 9, 2025 15:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 refactors the Markdown and GithubMarkdown components to wrap their views (ScrollView and WebView respectively) in a FrameLayout container and use tag-based view lookup for safer updates.

Key Changes

  • Wraps existing views in FrameLayout containers for both Markdown and GithubMarkdown components
  • Implements tag-based view lookup using findViewWithTag() for safer view references in update blocks
  • Removes an unnecessary return keyword in GithubMarkdown error handling

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
manager/app/src/main/java/me/weishu/kernelsu/ui/component/Markdown.kt Wraps TextView/ScrollView in FrameLayout, adds tag-based lookup in update block, but incorrectly removes required toArgb import
manager/app/src/main/java/me/weishu/kernelsu/ui/component/GithubMarkdown.kt Wraps WebView in FrameLayout with tag assignment, cleans up return statement in error handling

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

@aviraxp aviraxp merged commit c17db0c into main Dec 9, 2025
16 checks passed
@aviraxp aviraxp deleted the aviraxp-patch-1 branch December 9, 2025 15:58
rsuntk pushed a commit to rsuntk/KernelSU that referenced this pull request Dec 11, 2025
u9521 added a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
https://wbrawner.com/2024/08/28/android-webview-crash-in-jetpack-compose/

Co-authored-by: Wang Han <416810799@qq.com>
Signed-off-by: u9521 <63995396+u9521@users.noreply.github.com>
u9521 added a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
https://wbrawner.com/2024/08/28/android-webview-crash-in-jetpack-compose/

Co-authored-by: Wang Han <416810799@qq.com>
Signed-off-by: u9521 <63995396+u9521@users.noreply.github.com>
u9521 added a commit to u9521/KernelSU that referenced this pull request Jan 8, 2026
https://wbrawner.com/2024/08/28/android-webview-crash-in-jetpack-compose/

Co-authored-by: Wang Han <416810799@qq.com>
Signed-off-by: u9521 <63995396+u9521@users.noreply.github.com>
u9521 added a commit to u9521/KernelSU that referenced this pull request Jan 13, 2026
https://wbrawner.com/2024/08/28/android-webview-crash-in-jetpack-compose/

Co-authored-by: Wang Han <416810799@qq.com>
Signed-off-by: u9521 <63995396+u9521@users.noreply.github.com>
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