Eric Kok
4 years ago
2 changed files with 26 additions and 8 deletions
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
package androidx.preference; |
||||
|
||||
/** |
||||
* A helper to attach a new {@link PreferenceManager} to a {@link Preference}. This class is in the {@code androidx.preference} package to hack |
||||
* around the protected visibility of {@link Preference#onAttachedToHierarchy(PreferenceManager)}. |
||||
*/ |
||||
public class PreferenceManagerBinder { |
||||
private PreferenceManagerBinder() {} |
||||
|
||||
public static void bind(Preference pref, PreferenceManager manager) { |
||||
pref.onAttachedToHierarchy(manager); |
||||
} |
||||
} |
Loading…
Reference in new issue