Skip to content

Commit

Permalink
fix height
Browse files Browse the repository at this point in the history
  • Loading branch information
tumuyan committed Sep 5, 2021
1 parent aeabc54 commit 3c78028
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
8 changes: 3 additions & 5 deletions app/src/main/java/com/osfans/trime/ime/core/Trime.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3c78028

Please sign in to comment.