Skip to content

Commit 5b63209

Browse files
NextAlonelingqiqi5211
authored andcommitted
[skp] fix: change signal pos when SwapWifiAndMobile on HyperOS 3
Caused by network_speed's pos changing in latest version
1 parent 52d646f commit 5b63209

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/hook/src/main/java/com/sevtinge/hyperceiler/hook/module/hook/systemui/statusbar/icon/all/SwapWiFiAndMobileNetwork.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ object SwapWiFiAndMobileNetwork : BaseHook() {
5353

5454
removedIcons.clear()
5555
startIndex = if (isHyperOSVersion(3f)) {
56-
allStatusIcons.indexOf("network_speed")
56+
maxOf(allStatusIcons.indexOf("network_speed"), allStatusIcons.indexOf("hd"))
5757
} else {
5858
allStatusIcons.indexOf("hd")
5959
}

0 commit comments

Comments
 (0)