From 78b244897f028c5f5a7df48ce4eafb1057f3465c Mon Sep 17 00:00:00 2001 From: Elena Bobkova Date: Mon, 6 Mar 2017 20:29:56 +0300 Subject: [PATCH] added assertion --- .../ru/touchin/roboswag/components/views/TypefacedEditText.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/ru/touchin/roboswag/components/views/TypefacedEditText.java b/src/main/java/ru/touchin/roboswag/components/views/TypefacedEditText.java index 821a824..33c8493 100644 --- a/src/main/java/ru/touchin/roboswag/components/views/TypefacedEditText.java +++ b/src/main/java/ru/touchin/roboswag/components/views/TypefacedEditText.java @@ -309,6 +309,8 @@ public class TypefacedEditText extends AppCompatEditText { @Override public void setInputType(final int type) { if (AttributesUtils.isNumberInputType(type)) { + Lc.assertion(new IllegalStateException(AttributesUtils.viewError(this, + "Do not specify number InputType for EditText, use phone instead"))); super.setInputType(InputType.TYPE_CLASS_PHONE); return; }