aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/git/GitServerConfigActivity.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/git/GitServerConfigActivity.kt b/app/src/main/java/com/zeapo/pwdstore/git/GitServerConfigActivity.kt
index 1f5494fd..7a3978ba 100644
--- a/app/src/main/java/com/zeapo/pwdstore/git/GitServerConfigActivity.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/git/GitServerConfigActivity.kt
@@ -84,7 +84,11 @@ class GitServerConfigActivity : BaseGitActivity() {
}
binding.serverUser.apply {
- setText(serverUser)
+ if (serverUser.isEmpty()) {
+ requestFocus()
+ } else {
+ setText(serverUser)
+ }
doOnTextChanged { text, _, _, _ ->
serverUser = text.toString().trim()
}