Skip to content

Commit

Permalink
Fixed: Fix issue where a colour tint/highlight would be added to the …
Browse files Browse the repository at this point in the history
…terminal on activity re-creation

The fix in c6b4114 was not working for it.
  • Loading branch information
agnostic-apollo committed Jun 17, 2024
1 parent d7f2298 commit 087da0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,8 @@ public void setSoftKeyboardState(boolean isStartup, boolean isReloadTermuxProper
// disabled or hidden at startup, otherwise if hardware keyboard is attached and user
// starts typing on hardware keyboard without tapping on the terminal first, then a colour
// tint will be added to the terminal as highlight for the focussed view. Test with a light
// theme.
// theme. For android 8.+, the "defaultFocusHighlightEnabled" attribute is also set to false
// in TerminalView layout to fix the issue.

// If soft keyboard is disabled by user for Termux (check function docs for Termux behaviour info)
if (KeyboardUtils.shouldSoftKeyboardBeDisabled(mActivity,
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/res/layout/activity_termux.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<com.termux.app.terminal.TermuxActivityRootView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_termux_root_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand All @@ -25,11 +27,13 @@
android:id="@+id/terminal_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:defaultFocusHighlightEnabled="false"
android:focusableInTouchMode="true"
android:scrollbarThumbVertical="@drawable/terminal_scroll_shape"
android:scrollbars="vertical"
android:importantForAutofill="no"
android:autofillHints="password" />
android:autofillHints="password"
tools:ignore="UnusedAttribute" />

<LinearLayout
android:id="@+id/left_drawer"
Expand Down

0 comments on commit 087da0b

Please sign in to comment.