Added: Implement text scale disabling feature in terminal view #4366
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature to disable terminal view scaling and includes several changes across different files to implement and support this feature.
New feature implementation:
app/src/main/java/com/termux/app/terminal/TermuxTerminalViewClient.java
: Added the methodisTerminalViewScalingDisabled
to check if terminal view scaling is disabled.terminal-view/src/main/java/com/termux/view/TerminalView.java
: Modified theonScale
method to respect the newisTerminalViewScalingDisabled
check.terminal-view/src/main/java/com/termux/view/TerminalViewClient.java
: Added theisTerminalViewScalingDisabled
method to theTerminalViewClient
interface.Support for new feature in properties:
termux-shared/src/main/java/com/termux/shared/termux/settings/properties/TermuxPropertyConstants.java
: Added the keyKEY_DISABLE_TERMINAL_VIEW_SCALING
and updated relevant property lists to include this new key. [1] [2] [3] [4]termux-shared/src/main/java/com/termux/shared/termux/settings/properties/TermuxSharedProperties.java
: Added the methodisTerminalViewScalingDisabled
to retrieve the property value.termux-shared/src/main/java/com/termux/shared/termux/terminal/TermuxTerminalViewClientBase.java
: Implemented theisTerminalViewScalingDisabled
method to return a default value.