diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-08-13 23:27:34 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-08-13 23:27:34 +0200 |
commit | fbe2ce25619ec7c202a7abf22b112b622fd2ac56 (patch) | |
tree | d8b26f420dcffbcffc48a0cc615057c7d6c01c83 | |
parent | fb77aa9153b082ae72513e5ba372e9c90a7a6f3e (diff) |
default input type to numbers on captcha dialog
Diffstat (limited to '')
-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(); } }); } |