Only check this when longpressed on chip

This commit is contained in:
tarsin committed 2022-05-24 17:12:05 +08:00
1 parent 4f1b371e75
commit d5cfabd73e
1 file changed
+5
@@ -99,6 +99,11 @@ class SearchLayout @JvmOverloads constructor(
mChip.setText(mPair.second)
mChip.idt = mPair.first
mChip.isChecked = NumberUtils.int2boolean(mPair.first and mCategoryStored)
mChip.setOnLongClickListener {
mCategoryGroup.clearCheck()
mChip.isChecked = true
true
}
mCategoryGroup.addView(mChip)
}
mCategoryGroup.setOnCheckedStateChangeListener { _, checkedIds ->