Skip to content

Conversation

@YunZiA
Copy link
Contributor

@YunZiA YunZiA commented Jan 7, 2026

  • 修改 常规 导航跳转动画为miuix风格
  • 调整MainActivity launchMode 为 singleTask
  • 调整 模块快捷刷入 实现逻辑
  • 增加 Fab/列表卡片 导航跳转动画(仅适配部分页面)
  • 改写搜索页动画,修复该动画导致的下拉组件崩溃 修复搜索页取消按钮不居中

- 修改 常规 导航跳转动画为miuix风格
- 调整MainActivity launchMode 为 singleTask
- 调整 模块快捷刷入 实现逻辑
- 增加 Fab/列表卡片 导航跳转动画(仅适配部分页面)
- 改写搜索页动画,修复该动画导致的下拉组件崩溃
修复搜索页取消按钮不居中

This comment was marked as resolved.

@YuKongA
Copy link
Collaborator

YuKongA commented Jan 8, 2026

1、卡片跳转动画偶尔定位异常
2、从非主页侧滑返回不再先回到首页,直接回桌面了。

YuKongA and others added 6 commits January 8, 2026 09:50
- 优化 App Profile模块模版 页面动画
- 修复 从非主页侧滑返回不再先回到首页,直接回桌面 的bug
@YuKongA
Copy link
Collaborator

YuKongA commented Jan 9, 2026

1、搜索框抬起时背景模糊消失;
2、模块仓库详情页滚动异常。

YunZiA and others added 6 commits January 9, 2026 19:08
- 优化搜索框展开动画
- 修复搜索项ui层级错误
- 修复搜索取消未清除搜索内容
- 整理代码
- 简单的修复不能滑动的问题(不完美)
- 修复SharedTransitionLayout导致GithubMarkdown的height测量抽风
- 整理代码
- 修复搜索结果页面共享元素动画异常
Copy link
Collaborator

@YuKongA YuKongA left a comment

Choose a reason for hiding this comment

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

大体上没问题了

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

Copilot reviewed 38 out of 38 changed files in this pull request and generated 4 comments.


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

</html>
""".trimIndent()

var layoutListener: ViewTreeObserver.OnGlobalLayoutListener? = null
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

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

Potential race condition or memory leak concern. The layoutListener is declared as a nullable variable at line 120 and assigned within the WebView setup, but the cleanup logic in onRelease checks if it's null before removing it. However, if onRelease is called while the WebView is still being set up or if multiple compositions occur, there could be listener leaks. Consider using a more robust pattern such as storing the listener in a remember block or ensuring proper lifecycle management.

Copilot uses AI. Check for mistakes.
Comment on lines +301 to 325
val listener = Consumer<Intent> { intent ->
val uri = intent.data ?: return@Consumer
if (!isManager || uri.scheme != "content" || intent.type != "application/zip") return@Consumer

if (isSafeMode) {
Toast.makeText(
context,
context.getString(R.string.safe_mode_module_disabled), Toast.LENGTH_SHORT
)
.show()
} else {
zipUri = uri
installDialog.showConfirm(
title = context.getString(R.string.module),
content = context.getString(
R.string.module_install_prompt_with_name,
"\n${getDisplayName(uri)}"
if (isSafeMode) {
Toast.makeText(
context,
activity.getString(R.string.safe_mode_module_disabled), Toast.LENGTH_SHORT
).show()
} else {
zipUri = uri
installDialog.showConfirm(
title = activity.getString(R.string.module),
content = activity.getString(
R.string.module_install_prompt_with_name,
"\n${getDisplayName(uri)}"
)
)
)
}
}
activity.addOnNewIntentListener(listener)

onDispose {
activity.removeOnNewIntentListener(listener)
}
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

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

Missing error handling in the new intent listener. The Consumer<Intent> listener added at line 301 doesn't have any try-catch block to handle potential exceptions when processing the intent. If the intent processing fails (e.g., URI parsing errors, permission issues), it could crash the application. Consider wrapping the intent handling logic in a try-catch block with appropriate error logging and user feedback.

Copilot uses AI. Check for mistakes.
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