Skip to content

Commit

Permalink
fix: systemui - control center - hide delimiter, cc doesnt display sp…
Browse files Browse the repository at this point in the history
…aces
  • Loading branch information
Sevtinge committed May 27, 2024
1 parent 5eb1a13 commit 567ee1d
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,8 @@ protected void before(MethodHookParam param) {
@Override
protected void before(MethodHookParam param) {
String mCurrentCarrier = (String) XposedHelpers.getObjectField(param.thisObject, "mCurrentCarrier");
StringBuilder stringBuffer = new StringBuilder();
for (int i = 0; i < mCurrentCarrier.length(); i++) {
char ch = mCurrentCarrier.charAt(i);
if (" ".equals(String.valueOf(ch)) || "|".equals(String.valueOf(ch))) {
continue;
}
stringBuffer.append(ch);
}
XposedHelpers.setObjectField(param.thisObject, "mCurrentCarrier", operator ? stringBuffer.toString() : "");
String updatedCarrier = mCurrentCarrier.replace(" | ", "");
XposedHelpers.setObjectField(param.thisObject, "mCurrentCarrier", operator ? updatedCarrier : "");
}
}
);
Expand Down

0 comments on commit 567ee1d

Please sign in to comment.