From c0aa5392b9a4ceda34bf2014357ed2664718ab84 Mon Sep 17 00:00:00 2001
From: Charles Lombardo <clombardo169@gmail.com>
Date: Sun, 2 Apr 2023 22:24:14 -0400
Subject: [PATCH] android: Fix check for ok text in software keyboard

---
 .../yuzu/yuzu_emu/applets/keyboard/ui/KeyboardDialogFragment.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/applets/keyboard/ui/KeyboardDialogFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/applets/keyboard/ui/KeyboardDialogFragment.kt
index 2428bd2614..4b12809bce 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/applets/keyboard/ui/KeyboardDialogFragment.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/applets/keyboard/ui/KeyboardDialogFragment.kt
@@ -63,7 +63,7 @@ class KeyboardDialogFragment : DialogFragment() {
         val headerText =
             config.header_text!!.ifEmpty { resources.getString(R.string.software_keyboard) }
         val okText =
-            if (config.header_text!!.isEmpty()) resources.getString(android.R.string.ok) else config.ok_text!!
+            config.ok_text!!.ifEmpty { resources.getString(android.R.string.ok) }
 
         return MaterialAlertDialogBuilder(requireContext())
             .setTitle(headerText)