diff --git a/app/src/main/java/com/osfans/trime/ime/SymbolKeyboard/LiquidKeyboard.java b/app/src/main/java/com/osfans/trime/ime/SymbolKeyboard/LiquidKeyboard.java index f9fdf41f68..3f24491fba 100644 --- a/app/src/main/java/com/osfans/trime/ime/SymbolKeyboard/LiquidKeyboard.java +++ b/app/src/main/java/com/osfans/trime/ime/SymbolKeyboard/LiquidKeyboard.java @@ -135,7 +135,7 @@ private void calcPadding(SymbolKeyboardType type) { / 2; padding[1] = padding[0]; } - parentView.setPadding(padding[0], 0, padding[1], padding[2]); + parentView.setPadding(padding[0], 0, padding[1], 0); historyBeans = SimpleKeyDao.getSymbolKeyHistory(historySavePath); } diff --git a/app/src/main/java/com/osfans/trime/ime/core/Trime.java b/app/src/main/java/com/osfans/trime/ime/core/Trime.java index dd29e6000d..ad9673d9d0 100644 --- a/app/src/main/java/com/osfans/trime/ime/core/Trime.java +++ b/app/src/main/java/com/osfans/trime/ime/core/Trime.java @@ -414,11 +414,9 @@ public void onOptionChanged(@NonNull String option, boolean value) { public void selectLiquidKeyboard(int tabIndex) { if (symbleKeyboard != null) { if (tabIndex >= 0) { - LinearLayout.LayoutParams params = - (LinearLayout.LayoutParams) mainKeyboard.getLayoutParams(); - - params.height = mainKeyboard.getHeight(); - symbleKeyboard.setLayoutParams(params); + LinearLayout.LayoutParams param = + (LinearLayout.LayoutParams) symbleKeyboard.getLayoutParams(); + param.height = mainKeyboard.getHeight(); symbleKeyboard.setVisibility(View.VISIBLE); liquidKeyboard.setLand(orientation == Configuration.ORIENTATION_LANDSCAPE);