Description
Description: When I check a Chip in a ChipGroup the animation does not work properly.
Source code:
stateChipGroup.setOnCheckedChangeListener { group, checkedId -> if (checkedId == View.NO_ID) { //user tried to uncheck the checked button group.check(lastCheckedId) return@setOnCheckedChangeListener } lastCheckedId = checkedId val chip = stateChipGroup.findViewById<View?>(checkedId) if (chip != null && chip is Chip) { when (chip.text) { getString(R.string.enabled) -> { sharedPref?.edit { putInt(CHIP_KEY_STATE, BEACON_VISIBLE) commit() } } getString(R.string.disabled) -> { sharedPref?.edit { putInt(CHIP_KEY_STATE, BEACON_INVISIBLE) commit() } } getString(R.string.both) -> { sharedPref?.edit { putInt(CHIP_KEY_STATE, BEACON_BOTH) commit() } } } vm.updateRecyclerView() } }
Android API version: Android API version here
Material Library version: 1.1.0-alpha08
Device: OnePlus 7 Pro, OnePlus 3t
To help us triage faster, please check to make sure you are using the latest version of the library.
Cannot since app crashes due to error #605