diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-06-14 07:40:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-14 13:10:33 +0530 |
commit | 5aab4088d1697317c8c77e3565a7b0605a21b53f (patch) | |
tree | 73c32d18374d7830236fdca391d698dfec96fc76 /app/src/main/java | |
parent | dd8df232fb561ace6b70997f99bf86602f9027dd (diff) |
Misc UI fixups (#851)
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/git/GitServerConfigActivity.kt | 6 |
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() } |