Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Marchuk <alexm@maps.me>2016-06-15 14:37:41 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-06-24 13:31:46 +0300
commit64e9c8033b6e785dd8086b4dc47f60e8fa8da62f (patch)
treec68724ba723004818da3c960f16b9327e4953e4b /android
parentde3790a9b9caf1cffa3b117a545c24603787f103 (diff)
[android][editor] fix: Input types for some fields.
Diffstat (limited to 'android')
-rw-r--r--android/src/com/mapswithme/maps/editor/EditorFragment.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/android/src/com/mapswithme/maps/editor/EditorFragment.java b/android/src/com/mapswithme/maps/editor/EditorFragment.java
index f9bc9e3702..fcd3d5a837 100644
--- a/android/src/com/mapswithme/maps/editor/EditorFragment.java
+++ b/android/src/com/mapswithme/maps/editor/EditorFragment.java
@@ -12,6 +12,7 @@ import android.support.design.widget.TextInputLayout;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.SwitchCompat;
+import android.text.InputType;
import android.util.SparseArray;
import android.view.LayoutInflater;
import android.view.View;
@@ -360,15 +361,19 @@ public class EditorFragment extends BaseMwmFragment implements View.OnClickListe
// Details
mBlockLevels = view.findViewById(R.id.block_levels);
mBuildingLevels = findInputAndInitBlock(mBlockLevels, 0, getString(R.string.editor_storey_number, 25));
+ mBuildingLevels.setInputType(InputType.TYPE_CLASS_NUMBER);
mInputBuildingLevels = (TextInputLayout) mBlockLevels.findViewById(R.id.custom_input);
View blockPhone = view.findViewById(R.id.block_phone);
mPhone = findInputAndInitBlock(blockPhone, R.drawable.ic_phone, R.string.phone);
+ mPhone.setInputType(InputType.TYPE_CLASS_PHONE);
mInputPhone = (TextInputLayout) blockPhone.findViewById(R.id.custom_input);
View blockWeb = view.findViewById(R.id.block_website);
mWebsite = findInputAndInitBlock(blockWeb, R.drawable.ic_website, R.string.website);
+ mWebsite.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_URI);
mInputWebsite = (TextInputLayout) blockWeb.findViewById(R.id.custom_input);
View blockEmail = view.findViewById(R.id.block_email);
mEmail = findInputAndInitBlock(blockEmail, R.drawable.ic_email, R.string.email);
+ mEmail.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);
mInputEmail = (TextInputLayout) blockEmail.findViewById(R.id.custom_input);
View blockCuisine = view.findViewById(R.id.block_cuisine);
blockCuisine.setOnClickListener(this);