-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commented out Preference.OnPreferenceClickListener as deprecated
Deprecated in API Level 29 & onward: https://developer.android.com/reference/android/preference/Preference.OnPreferenceClickListener Line 157-166
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d55aabd
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.
Does this need to be commented out, can be removed?
d55aabd
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.
sorry, I do not know anymore why this code is there. why do you believe it should be removed?
d55aabd
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.
This code has been deprecated in API 29 and onward (https://developer.android.com/reference/android/preference/Preference.OnPreferenceClickListener). It is no longer used, but the AndroidX namespace is used under androidx.preference (https://developer.android.com/reference/androidx/preference/package-summary). This can be safely commented out until we can test this out over a build if required, but I believe this particular "preference" is "about" option (findPreference("show_about").setOnPreferenceClickListener), however is getting "overridden" by public boolean.
I do not have any android developer software to try this in sandbox or emulator, so unable to test it out directly.