Skip to content

Commit

Permalink
fix(MainActivity.java): fix resetting screen reseed mode
Browse files Browse the repository at this point in the history
  • Loading branch information
twaik committed Jan 14, 2025
1 parent e09c80b commit 989d08a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/termux/x11/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ public void onWindowFocusChanged(boolean hasFocus) {
else
window.clearFlags(FLAG_KEEP_SCREEN_ON);

window.setSoftInputMode((reseed ? SOFT_INPUT_ADJUST_RESIZE : SOFT_INPUT_ADJUST_PAN) | SOFT_INPUT_STATE_HIDDEN);
window.setSoftInputMode(reseed ? SOFT_INPUT_ADJUST_RESIZE : SOFT_INPUT_ADJUST_PAN);

((FrameLayout) findViewById(android.R.id.content)).getChildAt(0).setFitsSystemWindows(!fullscreen);
}
Expand Down

0 comments on commit 989d08a

Please sign in to comment.