-
Notifications
You must be signed in to change notification settings - Fork 3
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
Use Android library for settings activity #452
Use Android library for settings activity #452
Conversation
chrgernoe
commented
Feb 6, 2024
- Fixes Use Android Preference Library for App Settings #429
- Fixes Replace Choose-color-buttons in Preferences with pre-defined color wheel #421
Use external library for lead and follow colorization.
b1f1ace
to
51f09d7
Compare
for (stringResource in listOf(R.string.lead, R.string.follow)) { | ||
findPreference<ColorPickerPreference>(getString(stringResource))?.getColorPickerView()?.let { view -> | ||
context?.let { context -> | ||
view.getSharedPreferenceManager().setSharedPreferences( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is view.getSharedPreferenceManager
the same object as preferenceManager
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. The object preferenceManager
(defined in Android library) is the preference manager for the settings in our app and the object that is returned by view.getSharedPreferenceManager
is of type ColorPickerPreferenceManager
. This is a child of the class defined in the Android library but defined inside the external library.