diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/EditAccountActivity.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java index 634443165..92e933186 100644 --- a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java +++ b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java @@ -16,6 +16,7 @@ import android.security.KeyChain; import android.security.KeyChainAliasCallback; import android.support.v4.content.ContextCompat; import android.text.Editable; +import android.text.InputType; import android.text.TextWatcher; import android.view.Menu; import android.view.MenuItem; @@ -1196,6 +1197,7 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat final View view = getLayoutInflater().inflate(R.layout.captcha, null); final ImageView imageView = (ImageView) view.findViewById(R.id.captcha); final EditText input = (EditText) view.findViewById(R.id.input); + input.setInputType(InputType.TYPE_CLASS_NUMBER); imageView.setImageBitmap(captcha); builder.setTitle(getString(R.string.captcha_required)); @@ -1236,6 +1238,7 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat }); mCaptchaDialog = builder.create(); mCaptchaDialog.show(); + input.requestFocus(); } }); } |