Skip to content

ViewPump doesn't support the PreferenceInflater #54

@pr0t3us

Description

@pr0t3us

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions