diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index bc914a33..5d48f34c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -13,7 +13,7 @@ @@ -28,7 +28,6 @@ android:theme="@style/AppTheme"> + when (menuItem) { + FavoriteItemAction.Delete -> { + listener?.deleteFavoriteItem(children.indexOf(item)) + } + FavoriteItemAction.Rename -> { + listener?.renameFavoriteItem(item) + } + } + } + return@setOnContextClickListener true + } } else { holder.itemView.setOnLongClickListener(null) }