Skip to content

Commit 8f01e64

Browse files
committed
feat: display HyperOS when decided and add HyperOS description
1 parent ae15d72 commit 8f01e64

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

app/src/main/java/com/fankes/miui/notify/ui/activity/MainActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import com.fankes.miui.notify.utils.factory.hideOrShowLauncherIcon
3939
import com.fankes.miui.notify.utils.factory.isLauncherIconShowing
4040
import com.fankes.miui.notify.utils.factory.isLowerAndroidP
4141
import com.fankes.miui.notify.utils.factory.isLowerAndroidR
42+
import com.fankes.miui.notify.utils.factory.isMIOS
4243
import com.fankes.miui.notify.utils.factory.isNotMiSystem
4344
import com.fankes.miui.notify.utils.factory.isNotNoificationEnabled
4445
import com.fankes.miui.notify.utils.factory.isNotSupportMiSystemVersion
@@ -165,6 +166,7 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
165166
}
166167
}
167168
I18nWarnTool.checkingOrShowing(context = this)
169+
if (isMIOS) binding.mainTitle.text = binding.mainTitle.text.toString().replace("MIUI", "HyperOS")
168170
binding.mainTextVersion.text = "模块版本:${ModuleVersion.NAME}"
169171
/** 设置 CI 自动构建标识 */
170172
if (ModuleVersion.isCiMode)

app/src/main/res/layout/activity_main.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
android:paddingBottom="5dp">
2121

2222
<TextView
23+
android:id="@+id/main_title"
2324
android:layout_width="0dp"
2425
android:layout_height="wrap_content"
2526
android:layout_weight="1"
@@ -377,7 +378,7 @@
377378
android:layout_marginBottom="10dp"
378379
android:alpha="0.6"
379380
android:lineSpacingExtra="6dp"
380-
android:text="此选项默认开启,MIUI 默认最多只能显示 3 个图标,其余图标将变成省略号,你可以在下方自定义最多显示的图标个数,修改为 0 则只会显示省略号代表图标个数,为防止发生异常,最大限制 100 个,超出的图标可能会被信号或网速指示器遮挡。"
381+
android:text="此选项默认开启,MIUI 默认最多只能显示 3 个图标 (HyperOS 是 1 个),其余图标将变成省略号,你可以在下方自定义最多显示的图标个数,修改为 0 则只会显示省略号代表图标个数,为防止发生异常,最大限制 100 个,超出的图标可能会被信号或网速指示器遮挡。"
381382
android:textColor="@color/colorTextDark"
382383
android:textSize="12sp" />
383384

@@ -387,7 +388,7 @@
387388
android:layout_marginBottom="10dp"
388389
android:alpha="0.6"
389390
android:lineSpacingExtra="6dp"
390-
android:text="此功能针对不同类型的异形屏设备所搭载的 MIUI 会有不同的效果,如果你正在使用的是中置挖孔屏设备,那么通知图标的个数无论多少都不会超过挖孔区域,如果是居左或居右挖孔屏设备则通知图标的个数不会超过右侧信号图标区域。"
391+
android:text="此功能针对不同类型的异形屏设备所搭载的 MIUI、HyperOS 会有不同的效果,如果你正在使用的是中置挖孔屏设备,那么通知图标的个数无论多少都不会超过挖孔区域,如果是居左或居右挖孔屏设备则通知图标的个数不会超过右侧信号图标区域。"
391392
android:textColor="@color/colorTextDark"
392393
android:textSize="12sp"
393394
android:textStyle="bold" />
@@ -763,7 +764,7 @@
763764
android:gravity="center"
764765
android:padding="10dp"
765766
android:singleLine="true"
766-
android:text="打开 MIUI 通知显示设置"
767+
android:text="打开系统通知显示设置"
767768
android:textColor="@color/colorTextGray"
768769
android:textSize="15sp" />
769770

@@ -774,7 +775,7 @@
774775
android:layout_marginRight="15dp"
775776
android:alpha="0.6"
776777
android:lineSpacingExtra="6dp"
777-
android:text="点击上方按钮可以直接打开 MIUI 的通知显示设置界面,可以调整当前通知栏显示的通知样式为 MIUI 经典样式或原生样式,如果无法打开则是当前系统不支持此功能。"
778+
android:text="点击上方按钮可以直接打开系统的通知显示设置界面,可以调整当前通知栏显示的通知样式为 MIUI 经典样式或原生样式,如果无法打开则是当前系统不支持此功能。"
778779
android:textColor="@color/colorTextDark"
779780
android:textSize="12sp" />
780781

@@ -876,7 +877,7 @@
876877
android:layout_marginRight="15dp"
877878
android:alpha="0.6"
878879
android:lineSpacingExtra="6dp"
879-
android:text="此功能仅支持 Android 12 及以上系统的 Material 3 通知图标风格以及 MIUI 后期的经典样式通知图标风格。"
880+
android:text="此功能仅支持 Android 12 及以上系统的 Material 3 通知图标风格以及 MIUI、HyperOS 后期的经典样式通知图标风格。"
880881
android:textColor="@color/colorTextDark"
881882
android:textSize="12sp"
882883
android:textStyle="bold" />

0 commit comments

Comments
 (0)