mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-03-18 12:30:05 +01: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 setupView(view: View, clip: Clip, holder: ViewHolder) {
|
||||
if (clip.id == null) {
|
||||
return
|
||||
}
|
||||
|
||||
val isSelected = selectedKeys.contains(clip.id!!.toInt())
|
||||
view.apply {
|
||||
clip_value.text = clip.value
|
||||
|
Loading…
x
Reference in New Issue
Block a user