From 61bbf48b7351eca077ec16b2fc4827aec8c877ed Mon Sep 17 00:00:00 2001 From: hosizoraru Date: Wed, 24 May 2023 06:14:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E9=80=9F=E6=89=93=E5=BC=80=E6=9E=81?= =?UTF-8?q?=E6=9A=97=E5=92=8C=E5=8E=9F=E7=94=9F=E7=9A=84=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../voyager/activity/pages/PowerKeeperPage.kt | 35 +++++++++++++++++++ app/src/main/res/values-zh-rCN/strings.xml | 3 ++ app/src/main/res/values/strings.xml | 3 ++ 3 files changed, 41 insertions(+) diff --git a/app/src/main/kotlin/star/sky/voyager/activity/pages/PowerKeeperPage.kt b/app/src/main/kotlin/star/sky/voyager/activity/pages/PowerKeeperPage.kt index 90adfe14..eca42fe6 100644 --- a/app/src/main/kotlin/star/sky/voyager/activity/pages/PowerKeeperPage.kt +++ b/app/src/main/kotlin/star/sky/voyager/activity/pages/PowerKeeperPage.kt @@ -60,5 +60,40 @@ class PowerKeeperPage : BasePage() { tipsId = R.string.dc_fps_summary ), SwitchV("dc_fps") ) + TextSummaryWithArrow( + TextSummaryV( + textId = R.string.exported, + tipsId = R.string.exported_summary, + onClickListener = { + try { + val intent = Intent() + val comp = ComponentName( + "com.android.settings", + "com.android.settings.Settings\$ReduceBrightColorsSettingsActivity" + ) + intent.component = comp + activity.startActivity(intent) + } catch (e: Exception) { + Toast.makeText(activity, "启动失败,可能是不支持", Toast.LENGTH_LONG).show() + } + }) + ) + TextSummaryWithArrow( + TextSummaryV( + textId = R.string.original_notification, + onClickListener = { + try { + val intent = Intent() + val comp = ComponentName( + "com.android.settings", + "com.android.settings.Settings\$ConfigureNotificationSettingsActivity" + ) + intent.component = comp + activity.startActivity(intent) + } catch (e: Exception) { + Toast.makeText(activity, "启动失败,可能是不支持", Toast.LENGTH_LONG).show() + } + }) + ) } } \ 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 22985e99..8df92efc 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -322,6 +322,9 @@ 防止恢复电池优化白名单 电池优化 快速打开被MIUI隐藏的电池优化功能 + 极暗 + 快速打开极暗 + 原生的通知设置 跳过 5/10 秒警告时间 开启后可忽略MIUI在开启USB调试、\n未知来源、无障碍时的冻结时间 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b02a6751..ea92efff 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -325,6 +325,9 @@ Prevent recovery of battery optimization whitelist Battery optimization Quickly open the battery optimization menu hidden by MIUI + Exported + Quickly open the Exported + Original Notification Skip 5/10 seconds warning time Ignore the waiting time by MIUI when eanbling USB debugging, unknown sources and accessibility