From ce66d5875f3d92b36e1faad9c035547786603a1b Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Tue, 21 Mar 2023 19:12:28 -0400 Subject: [PATCH] Android: Fix long press action for leanback game cards --- .../org/dolphinemu/dolphinemu/adapters/GameRowPresenter.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/adapters/GameRowPresenter.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/adapters/GameRowPresenter.kt index 404d617ea0..c23b4b3e14 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/adapters/GameRowPresenter.kt +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/adapters/GameRowPresenter.kt @@ -54,11 +54,12 @@ class GameRowPresenter(private val mActivity: FragmentActivity) : Presenter() { // Set the background color of the card val background = ContextCompat.getDrawable(context, R.drawable.tv_card_background) cardParent.infoAreaBackground = background - cardParent.setOnClickListener { view: View -> + cardParent.setOnLongClickListener { view: View -> val activity = view.context as FragmentActivity val fragment = GamePropertiesDialog.newInstance(holder.gameFile) activity.supportFragmentManager.beginTransaction() .add(fragment, GamePropertiesDialog.TAG).commit() + true } if (GameFileCacheManager.findSecondDisc(gameFile) != null) {