Yuito-app-android/app
Nik Clayton fe7b1529df
Provide a preference to scale all UI text (#3248)
Font scaling is applied in addition to any scaling set in Android system preferences. So if the user set the Android font size to largest (a 1.3x increase) and then sets the preference to 120%, the total change is 1.56x.

Create SliderPreference to adjust the preference.

- Use Slider, which supports float values and step sizes > 1
- Display the selected value in the preference's summary
- Provide buttons to increment / decrement the value

Restart the activity if the preference changes so that the user sees the impact of the change immediately. Fix a bug in PreferencesActivity where the "EXTRA_RESTART_ON_BACK" intent was never processed. Fix this to ensure that other activities are restarted so the new font scale takes effect.

Implement the scaling in BaseActivity by overriding onAttachBaseContext, and providing a wrapped context with the font scaling applied.

Fixes https://github.com/tuskyapp/Tusky/issues/2982, https://github.com/tuskyapp/Tusky/issues/2461
2023-06-29 18:34:56 +02:00
..
schemas/com.keylesspalace.tusky.db.AppDatabase Save the a copy of the notification marker ID locally (#3672) 2023-05-18 23:23:42 +02:00
src Provide a preference to scale all UI text (#3248) 2023-06-29 18:34:56 +02:00
build.gradle Prepare 22.0 (versionCode 110) (#3718) 2023-06-08 12:35:09 +02:00
getGitSha.gradle Previous attempt to fix git sha on non-git build broke git build. (#3322) 2023-02-16 20:20:52 +01:00
lint-baseline.xml Replace deprecated getParcelable* methods with compat versions (#3633) 2023-06-11 12:58:55 +02:00
lint.xml Ignore LogConditional issues (#3615) 2023-05-04 14:50:21 +02:00
proguard-rules.pro Remove shrinker rules for okhttp (#3560) 2023-04-24 12:08:03 +02:00