android:layout_height="wrap_content" >
<!-- android:imeOptions="actionGo" sets the keyboard to have a "go" key instead of a "new line" key. -->
- <!-- android:inputType="textUri" disables spell check in the EditText and changes the "go" key from a check mark to an arrow. -->
- <!-- android:imeOptions="actionGo" sets the keyboard to have a "go" key instead of a "new line" key. -->
+ <!-- android:imeOptions=flagNoExtractUi" doesn't cover up the entire UI when typing in landscape orientation. -->
+ <!-- android:inputType="textUri" disables spell check in the EditText. -->
<EditText
android:id="@+id/shortcutNameEditText"
android:layout_width="match_parent"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:layout_marginBottom="16dp"
- android:imeOptions="actionGo"
+ android:imeOptions="actionGo|flagNoExtractUi"
android:inputType="textUri" />
</RelativeLayout>
\ No newline at end of file
android:contentDescription="@string/favorite_icon"/>
<!-- android:imeOptions="actionGo" sets the keyboard to have a "go" key instead of a "new line" key. -->
- <!-- android:inputType="textUri" disables spell check in the EditText and changes the "go" key from a check mark to an arrow. -->
+ <!-- android:imeOptions=flagNoExtractUi" doesn't cover up the entire UI when typing in landscape orientation. -->
+ <!-- android:inputType="textUri" disables spell check in the EditText. -->
<!-- android:layout_toEndOf requires API >= 17, but is compatible with right-to-left layouts. android:layout_toRightOf is required for previous APIs. -->
<EditText
android:id="@+id/urlTextBox"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/favoriteIcon"
android:layout_toRightOf="@id/favoriteIcon"
- android:imeOptions="actionGo"
+ android:imeOptions="actionGo|flagNoExtractUi"
android:inputType="textUri" />
</RelativeLayout>
android:entryValues="@array/user_agent_entry_values"
android:defaultValue="Default user agent" />
- // Android doesn't let EditTextPreferences have more than one line, but singleLine="false" is included in case they ever wisen up.
+ <!-- android:inputType="textVisiblePassword" sets the keyboard to have a dedicated number row. -->
+ <!-- android:imeOptions="flagNoExtractUi" is not set because with the dedicated number row there often isn't room to see the EditText in landscape orientation. -->
<EditTextPreference
android:key="custom_user_agent"
android:title="@string/custom_user_agent"
android:defaultValue="PrivacyBrowser/1.0"
- android:inputType="textUri"
- android:singleLine="false"/>
+ android:inputType="textVisiblePassword|textMultiLine" />
+
</PreferenceCategory>
<PreferenceCategory
android:entryValues="@array/javascript_disabled_search_entry_values"
android:defaultValue="https://duckduckgo.com/html/?q=" />
+ <!-- android:imeOptions="flagNoExtractUi" is not set because with the the length of the title of the dialog box there often isn't enough space to see the EditText in landscape orientation. -->
<EditTextPreference
android:key="javascript_disabled_search_custom_url"
android:title="@string/javascript_disabled_search_custom_url"
android:entryValues="@array/javascript_enabled_search_entry_values"
android:defaultValue="https://duckduckgo.com/?q=" />
+ <!-- android:imeOptions="flagNoExtractUi" is not set because with the the length of the title of the dialog box there often isn't enough space to see the EditText in landscape orientation. -->
<EditTextPreference
android:key="javascript_enabled_search_custom_url"
android:title="@string/javascript_enabled_search_custom_url"
android:key="general"
android:title="@string/general" >
+ <!-- android:imeOptions="flagNoExtractUi" is not set because in special character mode there often isn't enough space to see the EditText in landscape orientation. -->
<EditTextPreference
android:key="homepage"
android:title="@string/homepage_preference"