Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated UI for Pref and Frag to newer androidx #248

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Xavron
Copy link

@Xavron Xavron commented Aug 28, 2024

o Updated UI for Pref and Frag to newer androidx to remove a big chunk of deprecated warnings.

  • Of course there are other ways this can be done, but this is done with minimal changes, and clears out many deprecations and warnings.

Required

Nothing. This can be applied without the FTPS pull request in the event that you do not want FTPS merged in.

  • A separate pull request will patch the FTPS code to be compatible. That way you can do whatever :)

Fixes

Important notes

  • Only issue seen: Android 6 and 8 doesn't show the tap animation for the inner screen such as on Advanced Settings. It shows the long press animation but not tap. Android 14 shows the tap so its an issue with the support, compat, or androidx side of things. Really, just a minor issue. Everything else works great. Can workaround this if desired and add some tap animation but may not be identical.

  • To keep the same, had to wrap all prefs in null checks, as the new stuff doesn't see the rest now when fragment is switched to showing an inner pref screen due to inner pref screen changes in androidx. This is why I didn't want to adjust this to not include the FTPS pull request or adjust the FTPS pull request to this.

  • Manifest: size & orientation added to fix orientation issues on some sub screens where there was a problem.

  • iconSpaceReserved use in pref xml to fix the new large indentation spacing issue reserved for icons.

  • Updated to the current latest versions of all implementation's in build.gradle along with the androidx changes there. Think this fixed a build issue on androidx changes but didn't recheck it. No problems seen on any device so its good to go anyway.

  • popBackStack() used with theme switch to fix a back press issue that happens after the change without it.

Tests

  • Fairly well tested all parts of the UI on each test device.

  • Tested as working on Android 14, 8, 6.

  • Tested dirty install.

  • Tested clean install on Android 14, 6.

  • Full testing of orientation changes to make sure its working properly on all screens, menus, Activities, and Fragments. Includes text editing, settings screens, etc so that user can move away to another app and move back to make adjustments without loss.

  • Full testing of back button use to make sure its working properly on all screens, menus, Activities, and Fragments.

  • Tested with two themes to make sure no problems were hidden there.

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.

1 participant