更新BlockMIUI版本

This commit is contained in:
LittleTurtle2333
2023-02-16 22:57:07 +08:00
parent 2b36ad29d8
commit 8bd401b88f
9 changed files with 25 additions and 25 deletions

View File

@@ -66,7 +66,7 @@ class AboutPage : BasePage() {
}) })
Line() Line()
TitleText(text = getString(R.string.thank_list)) TitleText(text = getString(R.string.thank_list))
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.contributor_list, textId = R.string.contributor_list,
onClickListener = { onClickListener = {
@@ -80,7 +80,7 @@ class AboutPage : BasePage() {
} }
}) })
) )
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.third_party_open_source_statement, textId = R.string.third_party_open_source_statement,
onClickListener = { onClickListener = {
@@ -96,7 +96,7 @@ class AboutPage : BasePage() {
) )
Line() Line()
TitleText(text = getString(R.string.discussions)) TitleText(text = getString(R.string.discussions))
TextSummaryArrow(TextSummaryV(textId = R.string.qq_channel, onClickListener = { TextSummaryWithArrow(TextSummaryV(textId = R.string.qq_channel, onClickListener = {
try { try {
val uri = val uri =
Uri.parse("https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&inviteCode=29Mu64&from=246610&biz=ka") Uri.parse("https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&inviteCode=29Mu64&from=246610&biz=ka")
@@ -106,7 +106,7 @@ class AboutPage : BasePage() {
Toast.makeText(activity, "访问失败", Toast.LENGTH_SHORT).show() Toast.makeText(activity, "访问失败", Toast.LENGTH_SHORT).show()
} }
})) }))
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.tg_channel, textId = R.string.tg_channel,
tipsId = R.string.tg_channel_summary, tipsId = R.string.tg_channel_summary,
@@ -127,7 +127,7 @@ class AboutPage : BasePage() {
} }
}) })
) )
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.issues, textId = R.string.issues,
tipsId = R.string.issues_url, tipsId = R.string.issues_url,
@@ -144,7 +144,7 @@ class AboutPage : BasePage() {
) )
Line() Line()
TitleText(getString(R.string.other)) TitleText(getString(R.string.other))
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.app_coolapk_url, textId = R.string.app_coolapk_url,
tipsId = R.string.app_coolapk_url_summary, tipsId = R.string.app_coolapk_url_summary,
@@ -166,7 +166,7 @@ class AboutPage : BasePage() {
} }
}) })
) )
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.opensource, textId = R.string.opensource,
tipsId = R.string.github_url, tipsId = R.string.github_url,
@@ -181,7 +181,7 @@ class AboutPage : BasePage() {
} }
}) })
) )
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.participate_in_translation, textId = R.string.participate_in_translation,
tipsId = R.string.participate_in_translation_summary, tipsId = R.string.participate_in_translation_summary,

View File

@@ -13,7 +13,7 @@ import java.util.*
class MenuPage : BasePage() { class MenuPage : BasePage() {
override fun onCreate() { override fun onCreate() {
TextSummaryArrow(TextSummaryV(textId = R.string.reboot, onClickListener = { TextSummaryWithArrow(TextSummaryV(textId = R.string.reboot, onClickListener = {
MIUIDialog(activity) { MIUIDialog(activity) {
setTitle(R.string.Tips) setTitle(R.string.Tips)
setMessage(R.string.are_you_sure_reboot) setMessage(R.string.are_you_sure_reboot)
@@ -28,7 +28,7 @@ class MenuPage : BasePage() {
}.show() }.show()
})) }))
TextSummaryArrow(TextSummaryV(textId = R.string.reboot_host, onClickListener = { TextSummaryWithArrow(TextSummaryV(textId = R.string.reboot_host, onClickListener = {
MIUIDialog(activity) { MIUIDialog(activity) {
setTitle(R.string.Tips) setTitle(R.string.Tips)
setMessage(R.string.are_you_sure_reboot_scope) setMessage(R.string.are_you_sure_reboot_scope)

View File

@@ -66,7 +66,7 @@ class AndroidPageForS : BasePage() {
tipsId = R.string.remove_small_window_restrictions_summary tipsId = R.string.remove_small_window_restrictions_summary
), SwitchV("remove_small_window_restrictions") ), SwitchV("remove_small_window_restrictions")
) )
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.max_wallpaper_scale, textId = R.string.max_wallpaper_scale,
onClickListener = { onClickListener = {

View File

@@ -35,7 +35,7 @@ class MainPageForS : BasePage() {
) )
}) })
) )
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.matters_needing_attention, textId = R.string.matters_needing_attention,
colorId = R.color.red, colorId = R.color.red,
@@ -51,19 +51,19 @@ class MainPageForS : BasePage() {
) )
Line() Line()
TitleText(textId = R.string.scope) TitleText(textId = R.string.scope)
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.scope_systemui, textId = R.string.scope_systemui,
tipsId = R.string.scope_systemui_summary, tipsId = R.string.scope_systemui_summary,
onClickListener = { showFragment("scope_systemui") }) onClickListener = { showFragment("scope_systemui") })
) )
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.scope_android, textId = R.string.scope_android,
tipsId = R.string.scope_android_summary, tipsId = R.string.scope_android_summary,
onClickListener = { showFragment("scope_android") }) onClickListener = { showFragment("scope_android") })
) )
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.scope_other, textId = R.string.scope_other,
tipsId = R.string.scope_other_summary, tipsId = R.string.scope_other_summary,
@@ -71,7 +71,7 @@ class MainPageForS : BasePage() {
) )
Line() Line()
TitleText(textId = R.string.about) TitleText(textId = R.string.about)
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.about_module, textId = R.string.about_module,
tips = getString(R.string.about_module_summary), tips = getString(R.string.about_module_summary),

View File

@@ -82,7 +82,7 @@ class OtherPageForS : BasePage() {
SwitchV("make_millet_ignore_active"), SwitchV("make_millet_ignore_active"),
dataBindingRecv = makeMilletMoreAggressiveSwitchBinding.binding.getRecv(2) dataBindingRecv = makeMilletMoreAggressiveSwitchBinding.binding.getRecv(2)
) )
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.battery_optimization, textId = R.string.battery_optimization,
tipsId = R.string.battery_optimization_summary, tipsId = R.string.battery_optimization_summary,

View File

@@ -66,7 +66,7 @@ class AndroidPageForT : BasePage() {
tipsId = R.string.remove_small_window_restrictions_summary tipsId = R.string.remove_small_window_restrictions_summary
), SwitchV("remove_small_window_restrictions") ), SwitchV("remove_small_window_restrictions")
) )
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.max_wallpaper_scale, textId = R.string.max_wallpaper_scale,
onClickListener = { onClickListener = {

View File

@@ -35,7 +35,7 @@ class MainPageForT : BasePage() {
) )
}) })
) )
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.matters_needing_attention, textId = R.string.matters_needing_attention,
colorId = R.color.red, colorId = R.color.red,
@@ -51,19 +51,19 @@ class MainPageForT : BasePage() {
) )
Line() Line()
TitleText(textId = R.string.scope) TitleText(textId = R.string.scope)
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.scope_systemui, textId = R.string.scope_systemui,
tipsId = R.string.scope_systemui_summary, tipsId = R.string.scope_systemui_summary,
onClickListener = { showFragment("scope_systemui") }) onClickListener = { showFragment("scope_systemui") })
) )
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.scope_android, textId = R.string.scope_android,
tipsId = R.string.scope_android_summary, tipsId = R.string.scope_android_summary,
onClickListener = { showFragment("scope_android") }) onClickListener = { showFragment("scope_android") })
) )
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.scope_other, textId = R.string.scope_other,
tipsId = R.string.scope_other_summary, tipsId = R.string.scope_other_summary,
@@ -71,7 +71,7 @@ class MainPageForT : BasePage() {
) )
Line() Line()
TitleText(textId = R.string.about) TitleText(textId = R.string.about)
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.about_module, textId = R.string.about_module,
tips = getString(R.string.about_module_summary), tips = getString(R.string.about_module_summary),

View File

@@ -82,7 +82,7 @@ class OtherPageForT : BasePage() {
SwitchV("make_millet_ignore_active"), SwitchV("make_millet_ignore_active"),
dataBindingRecv = makeMilletMoreAggressiveSwitchBinding.binding.getRecv(2) dataBindingRecv = makeMilletMoreAggressiveSwitchBinding.binding.getRecv(2)
) )
TextSummaryArrow( TextSummaryWithArrow(
TextSummaryV( TextSummaryV(
textId = R.string.battery_optimization, textId = R.string.battery_optimization,
tipsId = R.string.battery_optimization_summary, tipsId = R.string.battery_optimization_summary,