We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ef74f2 commit bc8fc19Copy full SHA for bc8fc19
app/src/main/kotlin/org/akanework/gramophone/ui/adapters/AlbumAdapter.kt
@@ -53,7 +53,7 @@ class AlbumAdapter(
53
override fun onBindViewHolder(holder: ViewHolder, position: Int, payloads: MutableList<Any>) {
54
super.onBindViewHolder(holder, position, payloads)
55
if (layoutType == LayoutType.GRID) {
56
- val item = list?.second[position] ?: return
+ val item = list.second[position]
57
holder.itemView.setOnLongClickListener {
58
val popupMenu = PopupMenu(it.context, it)
59
onMenu(item, popupMenu)
0 commit comments