Skip to content

Commit 7aefd94

Browse files
Revert "Allow users to disable terminal margin adjustment"
This reverts commit 3213502
1 parent dc8bdfe commit 7aefd94

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

app/src/main/java/com/termux/app/TermuxActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,7 @@ public void onStart() {
259259
if (mTermuxTerminalViewClient != null)
260260
mTermuxTerminalViewClient.onStart();
261261

262-
if (!mProperties.isTerminalMarginAdjustmentDisabled())
263-
addTermuxActivityRootViewGlobalLayoutListener();
262+
addTermuxActivityRootViewGlobalLayoutListener();
264263

265264
registerTermuxActivityBroadcastReceiver();
266265
}

termux-shared/src/main/java/com/termux/shared/settings/properties/TermuxPropertyConstants.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,6 @@ public final class TermuxPropertyConstants {
7272

7373
/* boolean */
7474

75-
/** Defines the key for whether terminal view margin adjustment that is done to prevent soft
76-
* keyboard from covering bottom part of terminal view on some devices is disabled or not.
77-
* Margin adjustment may cause screen flickering on some devices and so should be disabled. */
78-
public static final String KEY_DISABLE_TERMINAL_MARGIN_ADJUSTMENT = "disable-terminal-margin-adjustment"; // Default: "disable-terminal-margin-adjustment"
79-
80-
81-
8275
/** Defines the key for whether a toast will be shown when user changes the terminal session */
8376
public static final String KEY_DISABLE_TERMINAL_SESSION_CHANGE_TOAST = "disable-terminal-session-change-toast"; // Default: "disable-terminal-session-change-toast"
8477

@@ -302,7 +295,6 @@ public final class TermuxPropertyConstants {
302295
* */
303296
public static final Set<String> TERMUX_PROPERTIES_LIST = new HashSet<>(Arrays.asList(
304297
/* boolean */
305-
KEY_DISABLE_TERMINAL_MARGIN_ADJUSTMENT,
306298
KEY_DISABLE_TERMINAL_SESSION_CHANGE_TOAST,
307299
KEY_ENFORCE_CHAR_BASED_INPUT,
308300
KEY_HIDE_SOFT_KEYBOARD_ON_STARTUP,
@@ -343,7 +335,6 @@ public final class TermuxPropertyConstants {
343335
* default: false
344336
* */
345337
public static final Set<String> TERMUX_DEFAULT_BOOLEAN_BEHAVIOUR_PROPERTIES_LIST = new HashSet<>(Arrays.asList(
346-
KEY_DISABLE_TERMINAL_MARGIN_ADJUSTMENT,
347338
KEY_DISABLE_TERMINAL_SESSION_CHANGE_TOAST,
348339
KEY_ENFORCE_CHAR_BASED_INPUT,
349340
KEY_HIDE_SOFT_KEYBOARD_ON_STARTUP,

termux-shared/src/main/java/com/termux/shared/settings/properties/TermuxSharedProperties.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,10 +460,6 @@ public static String getVolumeKeysBehaviourInternalPropertyValueFromValue(String
460460

461461

462462

463-
public boolean isTerminalMarginAdjustmentDisabled() {
464-
return (boolean) getInternalPropertyValue(TermuxPropertyConstants.KEY_DISABLE_TERMINAL_MARGIN_ADJUSTMENT, true);
465-
}
466-
467463
public boolean areTerminalSessionChangeToastsDisabled() {
468464
return (boolean) getInternalPropertyValue(TermuxPropertyConstants.KEY_DISABLE_TERMINAL_SESSION_CHANGE_TOAST, true);
469465
}

0 commit comments

Comments
 (0)