Commit b5095505 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

account wizard: use proper hint for new password

Change-Id: I3ac2c3007ca80564e0594f52b587d86cc84aaddc
parent 31f30c08
......@@ -126,7 +126,7 @@ class AccountMigrationFragment : Fragment() {
private fun checkPassword(pwd: TextView, confirm: TextView?): Boolean {
var error = false
if (pwd.text.length == 0) {
if (pwd.text.isEmpty()) {
error = true
} else {
if (pwd.text.length < 6) {
......
......@@ -81,7 +81,7 @@
android:id="@+id/ring_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="username"
android:autofillHints="password,newPassword"
android:hint="@string/prompt_new_password"
android:imeOptions="actionNext"
android:inputType="textPassword" />
......@@ -103,7 +103,7 @@
android:id="@+id/ring_password_repeat"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="username"
android:autofillHints="password,newPassword"
android:hint="@string/prompt_new_password_repeat"
android:imeActionLabel="@string/action_create_short"
android:imeOptions="actionDone"
......
......@@ -99,7 +99,7 @@ class JamiAccountCreationPresenter @Inject constructor(
fun passwordChanged(password: String) {
mAccountCreationModel?.password = password
if (!isEmpty(password) && password.length < PASSWORD_MIN_LENGTH) {
if (password.isNotEmpty() && password.length < PASSWORD_MIN_LENGTH) {
view?.showInvalidPasswordError(true)
isPasswordCorrect = false
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment