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

Refactor preference handling #20

Merged
merged 1 commit into from
Nov 23, 2022
Merged

Refactor preference handling #20

merged 1 commit into from
Nov 23, 2022

Conversation

udenr
Copy link
Contributor

@udenr udenr commented Nov 23, 2022

  • Move all access to preferences into PrefManager.java
  • Move preference keys to separate file preference_keys.xml
  • Use getSharedPreferences instead of deprecated getDefaultSharedPreferences
  • Fix usage of incorrect string values in pref_notification.xml and pref_workout.xml
  • Migrate old translated preference values to new non-translatable values in PrefManager.migratePreferences
  • Migrate preference from different files to default preference file in PrefManager.migratePreferences

- Move all access to preferences into PrefManager.java
- Move preference keys to separate file preference_keys.xml
- Use getSharedPreferences instead of deprecated getDefaultSharedPreferences
- Fix usage of incorrect string values in pref_notification.xml and pref_workout.xml
- Migrate old translated preference values to new non-translatable values in PrefManager.migratePreferences
- Migrate preference from different file to default preference file in PrefManager.migratePreferences
@udenr udenr merged commit 87b7bc4 into master Nov 23, 2022
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