ViewPump icon indicating copy to clipboard operation
ViewPump copied to clipboard

ViewPump doesn't support the `PreferenceInflater`

Open pr0t3us opened this issue 5 years ago • 0 comments

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 TextView is not replaced with CustomTextView

pr0t3us avatar Nov 18 '19 16:11 pr0t3us