ViewPump
ViewPump copied to clipboard
ViewPump doesn't support the `PreferenceInflater`
Description
When using androidx.preference.PreferenceFragmentCompat ViewPump doesn't intercept inflating underlying elements. Even PreferenceFragmentCompat uses a different inflation process than android.app.Fragment by loading the elements from the XML resource, it still uses regular widgets at the base.
How to reproduce
- Add a preference activity with fragment to the sample app guided by this example
- Don't forget to wrap the base context
- Observe the interceptors are not called and the
TextViewis not replaced withCustomTextView