summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-06-14 07:40:33 +0000
committerGitHub <noreply@github.com>2020-06-14 13:10:33 +0530
commit5aab4088d1697317c8c77e3565a7b0605a21b53f (patch)
tree73c32d18374d7830236fdca391d698dfec96fc76 /app/src/main/java
parentdd8df232fb561ace6b70997f99bf86602f9027dd (diff)
Misc UI fixups (#851)
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()
}