Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

[WIP: Do merge] Improve how Preferences are handled #26

Merged
merged 85 commits into from Jul 26, 2019

Conversation

hXtreme
Copy link
Collaborator

@hXtreme hXtreme commented Jul 19, 2019

Refactor out all preferences to preference helper.

Initial Commit for Preferences

  • Add dependency:

    • kotlin
    • preferences
  • Add files

    • PreferenceKeys
    • PreferencesHelper

@Doomsdayrs
Copy link
Member

What is the main issue with preferences?

@hXtreme
Copy link
Collaborator Author

hXtreme commented Jul 19, 2019

Preferences from throughout project are in SettingsController, this aims to bring all of them under PrefrencesHelper so that SettingsController only has to mange things that are in settings:

eg. Consider togglePause() in SettingsController it is there to manage an option that is not even in the settings.

At the same time, DownloadFragment has to import SettingsController to manage the pause button.

@Doomsdayrs
Copy link
Member

I see, i did make a mess of those underlying functions

@hXtreme
Copy link
Collaborator Author

hXtreme commented Jul 19, 2019

My soul cried when I saw isReaderLightMode() it's still crying but I'm trying to fix it.

@Doomsdayrs
Copy link
Member

wait what was so horrible about it?!

@hXtreme
Copy link
Collaborator Author

hXtreme commented Jul 25, 2019

Oof I shouldn't have rebased it.

@hXtreme hXtreme marked this pull request as ready for review July 26, 2019 01:59
@hXtreme hXtreme changed the title [WIP: Do not merge] Improve how Preferences are handled [WIP: Do merge] Improve how Preferences are handled Jul 26, 2019
@Doomsdayrs Doomsdayrs merged commit 434179c into shosetsuorg:development Jul 26, 2019
@hXtreme hXtreme deleted the preference-system branch July 26, 2019 03:34
@hXtreme hXtreme restored the preference-system branch July 26, 2019 17:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants