Skip to content

holder.findViewById(R.id.preference_colorBox) must not be null #32

Description

@luckyzyx

Please complete the following information:

  • Library Version 2.0.6
  • Affected Device(s) OnePlus 9RT Android 12

Describe the Bug:

        preferenceScreen = preferenceManager.createPreferenceScreen(requireActivity()).apply {
            addPreference(
                ColorPickerPreference(requireActivity()).apply {
                    setTitle("ColorPicker")
                    setSummary("summer")
                    key = "color_picker_test"
                    isIconSpaceReserved = false
                }
            )
        }

Adding Preference after importing will crash when the ColorPickerPreference is displayed, and the crash information preference_colorBox is null.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions