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 | |
parent | dd8df232fb561ace6b70997f99bf86602f9027dd (diff) |
Misc UI fixups (#851)
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/git/GitServerConfigActivity.kt | 6 | ||||
-rw-r--r-- | app/src/main/res/layout/activity_git_clone.xml | 5 | ||||
-rw-r--r-- | app/src/main/res/layout/git_credential_layout.xml | 1 |
3 files changed, 7 insertions, 5 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() } diff --git a/app/src/main/res/layout/activity_git_clone.xml b/app/src/main/res/layout/activity_git_clone.xml index 6fe19f19..8026fa4a 100644 --- a/app/src/main/res/layout/activity_git_clone.xml +++ b/app/src/main/res/layout/activity_git_clone.xml @@ -79,10 +79,7 @@ android:layout_height="wrap_content" android:imeOptions="actionNext" android:inputType="textWebEmailAddress" - android:nextFocusForward="@id/server_url"> - - <requestFocus /> - </com.google.android.material.textfield.TextInputEditText> + android:nextFocusForward="@id/server_url" /> </com.google.android.material.textfield.TextInputLayout> <com.google.android.material.textfield.TextInputLayout diff --git a/app/src/main/res/layout/git_credential_layout.xml b/app/src/main/res/layout/git_credential_layout.xml index 511a9f8f..757658e6 100644 --- a/app/src/main/res/layout/git_credential_layout.xml +++ b/app/src/main/res/layout/git_credential_layout.xml @@ -13,6 +13,7 @@ android:id="@+id/git_auth_passphrase_layout" android:layout_width="match_parent" android:layout_height="wrap_content" + app:endIconMode="password_toggle" app:hintEnabled="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" |