From 9e83bc30349f44eeaff9fcc6623b874d3fc97457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=80=E6=BC=93=E4=B8=A8Sevtinge?= <89193494+Sevtinge@users.noreply.github.com> Date: Sun, 28 Apr 2024 23:49:48 +0800 Subject: [PATCH] opt: debuginfo can be copied --- .../res/drawable/headtip_tip_background.xml | 6 ++ .../res/layout/development_debug_info.xml | 96 +++++++++---------- app/src/main/res/layout/headtip_tip.xml | 78 +++++++++++++++ app/src/main/res/values-zh-rCN/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + .../res/xml/prefs_development_debug_info.xml | 8 +- 6 files changed, 139 insertions(+), 51 deletions(-) create mode 100644 app/src/main/res/drawable/headtip_tip_background.xml create mode 100644 app/src/main/res/layout/headtip_tip.xml diff --git a/app/src/main/res/drawable/headtip_tip_background.xml b/app/src/main/res/drawable/headtip_tip_background.xml new file mode 100644 index 0000000000..ecd934dc5f --- /dev/null +++ b/app/src/main/res/drawable/headtip_tip_background.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/development_debug_info.xml b/app/src/main/res/layout/development_debug_info.xml index 2561b7962f..d3b11c646a 100644 --- a/app/src/main/res/layout/development_debug_info.xml +++ b/app/src/main/res/layout/development_debug_info.xml @@ -1,5 +1,4 @@ - - - - - - + android:clickable="false" + android:clipChildren="false" + android:gravity="center_vertical" + android:paddingStart="@dimen/preference_item_padding_start" + android:paddingEnd="@dimen/preference_item_padding_end" + android:paddingTop="@dimen/preference_item_padding_inner" + android:paddingBottom="@dimen/preference_item_padding_inner"> + + - - + android:layout_gravity="center_vertical" + android:layout_weight="1.0" + android:gravity="center_vertical"> - - + - + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/headtip_tip.xml b/app/src/main/res/layout/headtip_tip.xml new file mode 100644 index 0000000000..2807432a7d --- /dev/null +++ b/app/src/main/res/layout/headtip_tip.xml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 832bde3a2f..3a8337fee1 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -1725,5 +1725,6 @@ 您正在使用的 ROM 来源可能并不是 Xiaomi 官方,部分功能可能会失效,详情请咨询您正在使用 ROM 的提供者。 签名校验失败,您当前使用的版本可能并非来自于 Re.chronoRain 的官方版本,可能包含恶意代码,请注意使用安全。 + 您可以长按或双击后选择文本进行操作,或者复制并反馈给开发者。 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ceb7594ba6..5945095123 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1665,6 +1665,7 @@ You can still find this page in \"Settings - Set up the homepage entry\". Reboot app to apply. The source of the ROM you are using may not be official from Xiaomi, and some functions may not work, please contact the provider you are using for details. The signature verification failed, and the current version you are using may not be from the official version of Re.chronoRain, and may contain malicious code. + You can select text after long or double press, or copy it and feed it back to the developer. Warning has entered safe mode due to multiple crashes and HyperCeiler functionality has been temporarily disabled. \nClick OK to cancel, click Cancel to process later. View exception records diff --git a/app/src/main/res/xml/prefs_development_debug_info.xml b/app/src/main/res/xml/prefs_development_debug_info.xml index 4a897b2f05..1d9ad31c0a 100644 --- a/app/src/main/res/xml/prefs_development_debug_info.xml +++ b/app/src/main/res/xml/prefs_development_debug_info.xml @@ -1,10 +1,16 @@ + + \ No newline at end of file