Browse Source

Build 289

sensetoolbox
Mikanoshi 2 years ago
parent
commit
92df53c770
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      OneToolbox/src/com/sensetoolbox/six/mods/PrismMods.java

+ 2
- 1
OneToolbox/src/com/sensetoolbox/six/mods/PrismMods.java View File

@@ -657,7 +657,8 @@ public class PrismMods {
@Override
protected void afterHookedMethod(final MethodHookParam param) throws Throwable {
Resources cellres = (Resources)param.args[0];
if ((boolean)param.args[1]) param.setResult(Math.round(120 * cellres.getDisplayMetrics().density));
int cellHeight = Helpers.isEight() ? 118 : 120;
if ((boolean)param.args[1]) param.setResult(Math.round(cellHeight * cellres.getDisplayMetrics().density));
}
});
XposedHelpers.findAndHookMethod("com.htc.launcher.model.CellSizeModeConfiguration", lpparam.classLoader, "getCellHeightGap", Resources.class, boolean.class, new XC_MethodHook() {

Loading…
Cancel
Save