forked from organicmaps/organicmaps
[android] Fixed doubled hint
This commit is contained in:
parent
21fc72fc0d
commit
2dd438552d
2 changed files with 4 additions and 1 deletions
|
@ -34,6 +34,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<com.mapswithme.maps.widget.CustomTextInputLayout
|
||||
android:id="@+id/edit_text_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="0dp">
|
||||
|
|
|
@ -6,6 +6,7 @@ import android.os.Bundle;
|
|||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.annotation.StringRes;
|
||||
import android.support.design.widget.TextInputLayout;
|
||||
import android.text.Editable;
|
||||
import android.text.InputFilter;
|
||||
import android.text.TextWatcher;
|
||||
|
@ -70,7 +71,8 @@ public abstract class BaseEditUserBookmarkCategoryFragment extends BaseMwmToolba
|
|||
setHasOptionsMenu(true);
|
||||
mEditText = root.findViewById(R.id.edit_text_field);
|
||||
InputFilter[] inputFilters = { new InputFilter.LengthFilter(mTextLimit) };
|
||||
mEditText.setHint(getHintText());
|
||||
TextInputLayout editTextContainer = root.findViewById(R.id.edit_text_container);
|
||||
editTextContainer.setHint(getString(getHintText()));
|
||||
mEditText.setFilters(inputFilters);
|
||||
mEditText.setText(getEditableText());
|
||||
mEditText.addTextChangedListener(new TextRestrictionWatcher());
|
||||
|
|
Loading…
Add table
Reference in a new issue