Browse Source

Build 289

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 {
657 657
 				@Override
658 658
 				protected void afterHookedMethod(final MethodHookParam param) throws Throwable {
659 659
 					Resources cellres = (Resources)param.args[0];
660
-					if ((boolean)param.args[1]) param.setResult(Math.round(120 * cellres.getDisplayMetrics().density));
660
+					int cellHeight = Helpers.isEight() ? 118 : 120;
661
+					if ((boolean)param.args[1]) param.setResult(Math.round(cellHeight * cellres.getDisplayMetrics().density));
661 662
 				}
662 663
 			});
663 664
 			XposedHelpers.findAndHookMethod("com.htc.launcher.model.CellSizeModeConfiguration", lpparam.classLoader, "getCellHeightGap", Resources.class, boolean.class, new XC_MethodHook() {

Loading…
Cancel
Save