Skip to content

Commit bc8fc19

Browse files
committed
fix warning
1 parent 8ef74f2 commit bc8fc19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/org/akanework/gramophone/ui/adapters/AlbumAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class AlbumAdapter(
5353
override fun onBindViewHolder(holder: ViewHolder, position: Int, payloads: MutableList<Any>) {
5454
super.onBindViewHolder(holder, position, payloads)
5555
if (layoutType == LayoutType.GRID) {
56-
val item = list?.second[position] ?: return
56+
val item = list.second[position]
5757
holder.itemView.setOnLongClickListener {
5858
val popupMenu = PopupMenu(it.context, it)
5959
onMenu(item, popupMenu)

0 commit comments

Comments
 (0)