Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d451766 authored by cketti's avatar cketti
Browse files

Merge pull request #932

Retain caret position when toggling 'show password'
parents de160299 acc2e428
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -198,11 +198,13 @@ public class AccountSetupBasics extends K9Activity
    }

    private void showPassword(boolean show) {
        int cursorPosition = mPasswordView.getSelectionStart();
        if (show) {
            mPasswordView.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
        } else {
            mPasswordView.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
        }
        mPasswordView.setSelection(cursorPosition);
    }

    private void validateFields() {