Only check this when longpressed on chip
This commit is contained in:
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 ->
|
||||
|
||||
Reference in new issue
Block a user