Skip to content

Commit

Permalink
前置摄像助手
Browse files Browse the repository at this point in the history
  • Loading branch information
hosizoraru committed Aug 5, 2023
1 parent 54258a4 commit a747e70
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package star.sky.voyager.activity.pages.sub

import android.content.ComponentName
import android.content.Intent
import android.view.View
import android.widget.Toast.LENGTH_LONG
import android.widget.Toast.makeText
import cn.fkj233.ui.activity.MIUIActivity.Companion.safeSP
import cn.fkj233.ui.activity.annotation.BMPage
import cn.fkj233.ui.activity.data.BasePage
Expand Down Expand Up @@ -78,6 +82,23 @@ class SecurityUnlockPage : BasePage() {
),
SwitchV("camera_face_tracker", false)
)
TextSummaryWithArrow(
TextSummaryV(
textId = R.string.front_camera_assistant,
onClickListener = {
try {
val intent = Intent()
val comp = ComponentName(
"com.miui.securitycenter",
"com.miui.gamebooster.beauty.BeautySettingsActivity"
)
intent.component = comp
activity.startActivity(intent)
} catch (e: Exception) {
makeText(activity, "启动失败,可能是不支持", LENGTH_LONG).show()
}
})
)
Line()
TitleText(textId = R.string.scope_barrage)
TextSummaryWithSwitch(
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ja-rJP/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@
<string name="vcb_ability">ビデオ通話の美化</string>
<string name="privacy_camera">プライバシーカメラ</string>
<string name="camera_face_tracker">フォーカスフレーム</string>
<string name="front_camera_assistant">フロントカメラアシスタント</string>
<string name="screen_time">バッテリーランキングにスクリーンの消費電力情報を表示する</string>
<string name="screen_time_summary">同時に、他のすべてのアプリの非表示された消費電力情報も表示されます</string>
<string name="remove_conversation_bubble_settings_restriction">バブル通知のアプリ制限を削除</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@
<string name="vcb_ability">视频通话美颜</string>
<string name="privacy_camera">隐私拍摄</string>
<string name="camera_face_tracker">人像居中</string>
<string name="front_camera_assistant">前置摄像助手</string>
<string name="screen_time">在耗电排行中显示屏幕耗电信息</string>
<string name="screen_time_summary">同时会恢复显示所有其他应用的被隐藏的耗电信息</string>
<string name="remove_conversation_bubble_settings_restriction">去除气泡通知应用限制</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@
<string name="vcb_ability">Beautify for video calls</string>
<string name="privacy_camera">Privacy Camera</string>
<string name="camera_face_tracker">FocusFrame</string>
<string name="front_camera_assistant">Front camera assistant</string>
<string name="screen_time">Display screen power consumption information on battery ranking</string>
<string name="screen_time_summary">At the same time, the hidden power consumption information of all other apps will also be displayed</string>
<string name="remove_conversation_bubble_settings_restriction">Remove conversation bubble settings restriction</string>
Expand Down

0 comments on commit a747e70

Please sign in to comment.