diff options
author | Александр Зацепин <az@mapswithme.com> | 2017-09-26 18:31:04 +0300 |
---|---|---|
committer | Vlad Mihaylenko <vxmihaylenko@gmail.com> | 2017-09-26 18:39:29 +0300 |
commit | d940a4761786c994884d2488a469635a4ac76d28 (patch) | |
tree | ee2f33c52b13f98e8eadb05e2a1998dde64a8fed | |
parent | 3fe0d07d85aaad9b68226d884f7465915ff0a085 (diff) |
[android] Fixed crash in editor after support library is updatedbeta-1019
-rw-r--r-- | android/res/layout/item_localized_name.xml | 3 | ||||
-rw-r--r-- | android/src/com/mapswithme/maps/editor/MultilanguageAdapter.java | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/android/res/layout/item_localized_name.xml b/android/res/layout/item_localized_name.xml index 7dd700b5da..1354e96461 100644 --- a/android/res/layout/item_localized_name.xml +++ b/android/res/layout/item_localized_name.xml @@ -9,6 +9,7 @@ android:orientation="horizontal"> <android.support.design.widget.TextInputLayout + android:id="@+id/input_layout" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1"> @@ -31,4 +32,4 @@ android:src="@drawable/ic_close" android:tint="@color/base_red"/> -</LinearLayout>
\ No newline at end of file +</LinearLayout> diff --git a/android/src/com/mapswithme/maps/editor/MultilanguageAdapter.java b/android/src/com/mapswithme/maps/editor/MultilanguageAdapter.java index 3b8e9ce611..f063e091ae 100644 --- a/android/src/com/mapswithme/maps/editor/MultilanguageAdapter.java +++ b/android/src/com/mapswithme/maps/editor/MultilanguageAdapter.java @@ -93,7 +93,7 @@ public class MultilanguageAdapter extends RecyclerView.Adapter<MultilanguageAdap { super(itemView); input = (EditText) itemView.findViewById(R.id.input); - inputLayout = (TextInputLayout) input.getParent(); + inputLayout = (TextInputLayout) itemView.findViewById(R.id.input_layout); input.addTextChangedListener(new StringUtils.SimpleTextWatcher() { @Override |