mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 11:21:18 +08:00
修复 电信卡隐藏HD后显示无服务
This commit is contained in:
@@ -246,6 +246,21 @@ class SystemUI : IXposedHookLoadPackage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
XposedHelpers.findAndHookMethod(
|
||||||
|
"com.android.systemui.statusbar.policy.MobileSignalController", lpparam.classLoader,
|
||||||
|
"updateVoiceIcon",
|
||||||
|
object : XC_MethodHook() {
|
||||||
|
override fun beforeHookedMethod(param: MethodHookParam) {
|
||||||
|
if (prefs.hasFileChanged()) {
|
||||||
|
prefs.reload()
|
||||||
|
}
|
||||||
|
if (prefs.getBoolean("hide_hd_icon", false)) {
|
||||||
|
param.result = null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
XposedBridge.log(e)
|
XposedBridge.log(e)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user