Skip to content

Commit

Permalink
Remove fullscreen mode
Browse files Browse the repository at this point in the history
Full Screen Mode is removed as it messes with visibility of Eks and also causes a few glitches
  • Loading branch information
suhan-paradkar committed Aug 26, 2021
1 parent 6b14843 commit a7f4111
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
16 changes: 0 additions & 16 deletions app/src/main/java/com/termux/x11/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,6 @@ public void onWindowFocusChanged(boolean hasFocus)
Window window = getWindow();
View decorView = window.getDecorView();

if (hasFocus && preferences.getBoolean("fullscreen", false))
{
window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
decorView.setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
} else {
window.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
decorView.setSystemUiVisibility(0);
}

if (preferences.getBoolean("Reseed", true))
{
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
android:summary="Show keyboard with additional keys."
android:key="showAdditionalKbd" />

<CheckBoxPreference
android:title="Fullscreen mode"
android:defaultValue="false"
android:key="fullscreen" />

<ListPreference
android:title="Touchscreen input mode"
android:key="touchMode"
Expand Down

0 comments on commit a7f4111

Please sign in to comment.