1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-27 21:31:29 +00:00

Added input type field to text inputs (fixes #542).

This commit is contained in:
Felix Ableitner 2016-02-09 21:50:33 +01:00
parent cda06d8938
commit 7117933b6d
2 changed files with 21 additions and 12 deletions

View file

@ -32,8 +32,7 @@
android:hint="@string/device_id"
android:imeOptions="actionNext"
android:inputType="textNoSuggestions|textMultiLine"
android:nextFocusForward="@+id/name"
tools:text="@string/device_id_placeholder" />
android:nextFocusForward="@+id/name" />
<ImageView
android:id="@+id/qrButton"
@ -66,7 +65,8 @@
android:drawableLeft="@drawable/ic_link_black_24dp"
android:drawableStart="@drawable/ic_link_black_24dp"
android:hint="@string/addresses"
android:imeOptions="actionDone" />
android:imeOptions="actionDone"
android:inputType="textNoSuggestions"/>
<LinearLayout
android:id="@+id/compressionContainer"

View file

@ -55,24 +55,28 @@
<EditTextPreference
android:key="deviceName"
android:title="@string/device_name"
android:persistent="false" />
android:persistent="false"
android:inputType="textCapWords" />
<EditTextPreference
android:key="listenAddress"
android:title="@string/listen_address"
android:persistent="false" />
android:persistent="false"
android:inputType="textNoSuggestions" />
<EditTextPreference
android:key="maxRecvKbps"
android:title="@string/max_recv_kbps"
android:numeric="integer"
android:persistent="false" />
android:persistent="false"
android:inputType="number" />
<EditTextPreference
android:key="maxSendKbps"
android:title="@string/max_send_kbps"
android:numeric="integer"
android:persistent="false" />
android:persistent="false"
android:inputType="number" />
<CheckBoxPreference
android:key="globalAnnounceEnabled"
@ -92,7 +96,8 @@
<EditTextPreference
android:key="globalAnnounceServers"
android:title="@string/global_announce_server"
android:persistent="false" />
android:persistent="false"
android:inputType="textNoSuggestions" />
<CheckBoxPreference
android:key="urAccepted"
@ -108,15 +113,18 @@
<EditTextPreference
android:key="address"
android:title="@string/gui_address"
android:persistent="false" />
android:persistent="false"
android:inputType="textNoSuggestions" />
<EditTextPreference
android:key="gui_user"
android:title="@string/gui_user" />
android:title="@string/gui_user"
android:inputType="textCapWords" />
<EditTextPreference
android:key="gui_password"
android:title="@string/gui_password" />
android:title="@string/gui_password"
android:inputType="textVisiblePassword" />
</PreferenceScreen>
@ -131,7 +139,8 @@
<EditTextPreference
android:key="sttrace"
android:title="@string/sttrace_title"
android:singleLine="true" />
android:singleLine="true"
android:inputType="textNoSuggestions"/>
<Preference
android:key="streset"