[Android] Automatically show the keyboard in the PIN code screen
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 Jun 27 07:38:24 2023 +0200| [928827645490818f6fd0175a3fb645e4a2a6545c] | committer: Duncan McNamara
Automatically show the keyboard in the PIN code screen
> https://code.videolan.org/videolan/vlc-android/commit/928827645490818f6fd0175a3fb645e4a2a6545c
---
application/vlc-android/src/org/videolan/vlc/gui/PinCodeActivity.kt | 3 +++
1 file changed, 3 insertions(+)
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 a51cb85d0a..d82be20bfe 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/PinCodeActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/PinCodeActivity.kt
@@ -42,6 +42,7 @@ import org.videolan.tools.Settings
import org.videolan.tools.putSingle
import org.videolan.vlc.R
import org.videolan.vlc.databinding.PinCodeActivityBinding
+import org.videolan.vlc.gui.helpers.UiTools
import java.security.MessageDigest
import java.util.regex.Pattern
@@ -67,6 +68,8 @@ class PinCodeActivity : BaseActivity() {
reason = PinCodeReason.values() [intent.getIntExtra(PIN_CODE_REASON, 0)]
binding = DataBindingUtil.setContentView(this, R.layout.pin_code_activity)
+ binding.pinCode.requestFocus()
+ UiTools.setKeyboardVisibility(binding.pinCode, true)
binding.pinCodeReason.text = getString(when (reason) {
PinCodeReason.FIRST_CREATION -> R.string.pin_code_reason_create
PinCodeReason.MODIFY -> R.string.pin_code_reason_modify
More information about the Android
mailing list