From b21a5c0be01121cb890de8f58b9439249099e999 Mon Sep 17 00:00:00 2001 From: Levin Li Date: Fri, 30 Apr 2021 16:25:29 +0800 Subject: [PATCH] Fix softkeyboard dismiss issue --- app/src/main/AndroidManifest.xml | 3 +-- .../favorite/FavoriteItemRecyclerViewAdapter.kt | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) 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) }