mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-04-03 13:11:22 +02:00
adding an extra check for clip null id
This commit is contained in:
parent
6e27297fa7
commit
4830787df4
@ -142,6 +142,10 @@ class ClipsActivityAdapter(
|
|||||||
private fun getSelectedItems() = items.filter { selectedKeys.contains(it.id!!.toInt()) } as ArrayList<Clip>
|
private fun getSelectedItems() = items.filter { selectedKeys.contains(it.id!!.toInt()) } as ArrayList<Clip>
|
||||||
|
|
||||||
private fun setupView(view: View, clip: Clip, holder: ViewHolder) {
|
private fun setupView(view: View, clip: Clip, holder: ViewHolder) {
|
||||||
|
if (clip.id == null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
val isSelected = selectedKeys.contains(clip.id!!.toInt())
|
val isSelected = selectedKeys.contains(clip.id!!.toInt())
|
||||||
view.apply {
|
view.apply {
|
||||||
clip_value.text = clip.value
|
clip_value.text = clip.value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user