[Android] Always focus the edit text in the PIN code activity

Nicolas Pomepuy git at videolan.org
Wed Jul 12 08:30:36 UTC 2023


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jul  4 09:21:04 2023 +0200| [257487ccfa29b33e6984e2039a8ecb2522b03180] | committer: Duncan McNamara

Always focus the edit text in the PIN code activity

> https://code.videolan.org/videolan/vlc-android/commit/257487ccfa29b33e6984e2039a8ecb2522b03180
---

 application/vlc-android/src/org/videolan/vlc/gui/PinCodeActivity.kt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/PinCodeActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/PinCodeActivity.kt
index 8fc2bfa8b4..923e61d134 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/PinCodeActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/PinCodeActivity.kt
@@ -106,6 +106,7 @@ class PinCodeActivity : BaseActivity() {
                 binding.pinCode.imeOptions = EditorInfo.IME_ACTION_DONE
                 binding.nextButton.text = getString(R.string.done)
             }
+            binding.pinCode.requestFocus()
         }
 
         binding.pinCode.setOnEditorActionListener { v, actionId, event ->



More information about the Android mailing list