feat:【光环助手】设备信息显示 https://jira.shanqu.cc/browse/GHZSCY-6578

This commit is contained in:
曾祥俊
2024-08-26 14:07:54 +08:00
parent f5a39f982e
commit 9d10add8eb
3 changed files with 12 additions and 11 deletions

View File

@ -72,6 +72,7 @@ android_build:
only: only:
- dev - dev
- release - release
- feat/GHZSCY-6578
# 代码检查 # 代码检查
sonarqube_analysis: sonarqube_analysis:
@ -156,4 +157,5 @@ oss-upload&send-email:
- /usr/local/bin/python /ci-android-mail-jira-comment.py - /usr/local/bin/python /ci-android-mail-jira-comment.py
only: only:
- dev - dev
- release - release
- feat/GHZSCY-6578

View File

@ -62,16 +62,14 @@ class AboutFragment : ToolbarFragment() {
ARouter.getInstance().build(RouteConsts.provider.updateManager).navigation() as? IUpdateManagerProvider ARouter.getInstance().build(RouteConsts.provider.updateManager).navigation() as? IUpdateManagerProvider
updateManager?.checkUpdate(requireActivity(), true) // 检查更新 updateManager?.checkUpdate(requireActivity(), true) // 检查更新
if (PackageFlavorHelper.IS_TEST_FLAVOR) { var clickCount = 0
var clickCount = 0 mBinding.aboutGhIcon.setOnClickListener {
mBinding.aboutGhIcon.setOnClickListener { if (clickCount == 5) {
if (clickCount == 5) { mBinding.aboutGhIcon.setOnClickListener(null)
mBinding.aboutGhIcon.setOnClickListener(null) mBinding.deviceContent.visibility = View.VISIBLE
mBinding.deviceContent.visibility = View.VISIBLE mBinding.deviceContent.text.toString().copyTextAndToast("复制成功!")
mBinding.deviceContent.text.toString().copyTextAndToast("复制成功!") } else {
} else { clickCount++
clickCount++
}
} }
} }

View File

@ -131,6 +131,7 @@ class ComposeAboutActivity : ComposeBaseActivity() {
} }
}, },
onPress = { onPress = {
if (deviceContent.isNotEmpty()) return@detectTapGestures
if (clickCount == 5) { if (clickCount == 5) {
val sb = StringBuilder() val sb = StringBuilder()
val meta = MetaUtil.getMeta() val meta = MetaUtil.getMeta()