这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@babaric-dev
Copy link

@babaric-dev babaric-dev commented Jan 23, 2023

This PR kind of solves #3119.

Originally, every zoom change made is stored in the KEY_FONTSIZE key in SharedPreferences.

In this PR, it uses the display ID as a key to store the setting. The key is KEY_FONTSIZE + display number in string representation. The only exception is for the primary display (Display.DEFAULT_DISPLAY), which uses KEY_FONTSIZE.

Suppose Display.DEFAULT_DISPLAY is 0 and KEY_FONTSIZE is "fontsize" Here are some examples:

Display ID Key
0 "fontsize" (no change)
2 "fontsize2"
7 "fontsize7"
... ...

I tested the code. It works even during runtime switches between phone / DeX.

@babaric-dev
Copy link
Author

Will this merge?

@agnostic-apollo
Copy link
Member

Yes, looks fine, will test myself later.

@ghost

This comment was marked as spam.

@babaric-dev
Copy link
Author

@agnostic-apollo Could you please review and approve my PR?

@agnostic-apollo
Copy link
Member

Like I said in the other pull that preferences files have been moved, so you will have to wait till I push my local changes.

fornwall added a commit to termux-play-store/termux-apps that referenced this pull request Jun 15, 2024
fornwall added a commit to termux-play-store/termux-apps that referenced this pull request Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants