增加一处空指针判断

This commit is contained in:
LittleTurtle2333
2022-02-19 16:47:23 +08:00
parent 96e14daac6
commit 7b3047a02a

View File

@@ -397,12 +397,14 @@ class SystemUI : IXposedHookLoadPackage {
prefs.reload()
}
if (prefs.getBoolean("hide_status_bar_network_speed_second", false)) {
if (param.args[0] != null) {
param.args[0] = (param.args[0] as String)
.replace("/", "")
.replace("s", "")
.replace("'", "")
}
}
}
})
} catch (e: Exception) {
XposedBridge.log(e)