NetworkPreferences: Simplify proxy setup yet again

* Allow to view and edit proxy URL without turning it off and on
* Add a new disable button in proxy dialog
* Trim whitespace and disallow new lines in the proxy URL field
* Disable buttons when not applicable

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2025-02-18 14:46:42 +08:00
parent cff88b1e17
commit 076b6ad291
50 changed files with 50 additions and 199 deletions

View File

@@ -3,6 +3,7 @@
android:id="@+id/textInputLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/pref_network_proxy_url_hint"
android:paddingHorizontal="@dimen/padding_large"
android:paddingTop="@dimen/padding_normal">
@@ -10,6 +11,7 @@
android:id="@+id/textInputEditText"
style="@style/Widget.Material3.TextInputEditText.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:inputType="text"
android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout>