mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 997447 - Replace uses of EditText with FloatingHintEditText. r=lucasr
This commit is contained in:
parent
ed406de802
commit
0855e2eda8
@ -33,6 +33,7 @@ import org.mozilla.gecko.db.BrowserContract.SuggestedSites;
|
||||
import org.mozilla.gecko.home.HomePanelPicker;
|
||||
import org.mozilla.gecko.util.GeckoEventListener;
|
||||
import org.mozilla.gecko.util.ThreadUtils;
|
||||
import org.mozilla.gecko.widget.FloatingHintEditText;
|
||||
|
||||
import android.app.ActionBar;
|
||||
import android.app.Activity;
|
||||
@ -971,7 +972,7 @@ OnSharedPreferenceChangeListener
|
||||
}
|
||||
|
||||
private EditText getTextBox(int aHintText) {
|
||||
EditText input = new EditText(GeckoAppShell.getContext());
|
||||
EditText input = new FloatingHintEditText(GeckoAppShell.getContext());
|
||||
int inputtype = InputType.TYPE_CLASS_TEXT;
|
||||
inputtype |= InputType.TYPE_TEXT_VARIATION_PASSWORD | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS;
|
||||
input.setInputType(inputtype);
|
||||
|
@ -12,6 +12,7 @@ import java.util.GregorianCalendar;
|
||||
import org.json.JSONObject;
|
||||
import org.mozilla.gecko.widget.AllCapsTextView;
|
||||
import org.mozilla.gecko.widget.DateTimePicker;
|
||||
import org.mozilla.gecko.widget.FloatingHintEditText;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
@ -62,7 +63,7 @@ public class PromptInput {
|
||||
}
|
||||
|
||||
public View getView(final Context context) throws UnsupportedOperationException {
|
||||
EditText input = new EditText(context);
|
||||
EditText input = new FloatingHintEditText(context);
|
||||
input.setInputType(InputType.TYPE_CLASS_TEXT);
|
||||
input.setText(mValue);
|
||||
|
||||
|
@ -9,20 +9,23 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_height="fill_parent">
|
||||
|
||||
<EditText android:id="@+id/edit_bookmark_name"
|
||||
<org.mozilla.gecko.widget.FloatingHintEditText
|
||||
android:id="@+id/edit_bookmark_name"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:hint="@string/bookmark_edit_name"/>
|
||||
|
||||
<EditText android:id="@+id/edit_bookmark_location"
|
||||
<org.mozilla.gecko.widget.FloatingHintEditText
|
||||
android:id="@+id/edit_bookmark_location"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:hint="@string/bookmark_edit_location"
|
||||
android:inputType="textNoSuggestions"/>
|
||||
|
||||
<EditText android:id="@+id/edit_bookmark_keyword"
|
||||
<org.mozilla.gecko.widget.FloatingHintEditText
|
||||
android:id="@+id/edit_bookmark_keyword"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
|
Loading…
Reference in New Issue
Block a user