NetworkPreference: Move out and simply proxy logic
No need to check connectivity as soon as URL is set as SplashFragment will only let you login when a valid connection is available. Use a modern dialog and EditText to do set the URL with minimal verification. Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
android:id="@+id/textInputEditText"
|
||||
style="@style/Widget.Material3.TextInputEditText.OutlinedBox"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/add_dispenser_hint" />
|
||||
android:layout_height="wrap_content" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
@@ -484,4 +484,8 @@
|
||||
app:popUpTo="@id/mobile_navigation"
|
||||
app:popUpToInclusive="true" />
|
||||
</dialog>
|
||||
<dialog
|
||||
android:id="@+id/proxyURLDialog"
|
||||
android:name="com.aurora.store.view.ui.preferences.ProxyURLDialog"
|
||||
android:label="@string/pref_network_proxy_url" />
|
||||
</navigation>
|
||||
|
||||
@@ -233,6 +233,7 @@
|
||||
<string name="pref_network_proxy_enable">"Enable proxy"</string>
|
||||
<string name="pref_network_proxy_enable_desc">"Allow all traffic from app to go through the proxy"</string>
|
||||
<string name="pref_network_proxy_url">"Proxy URL"</string>
|
||||
<string name="pref_network_proxy_url_message">Enter a valid proxy URL to pass all data through the proxy.</string>
|
||||
<string name="pref_ui_accent_title">"Accent"</string>
|
||||
<string name="pref_ui_theme_black">"Black"</string>
|
||||
<string name="pref_ui_theme_dark">"Dark"</string>
|
||||
|
||||
@@ -38,12 +38,6 @@
|
||||
app:summary="@string/pref_network_proxy_enable_desc"
|
||||
app:title="@string/pref_network_proxy_enable" />
|
||||
|
||||
<EditTextPreference
|
||||
app:dependency="PREFERENCE_PROXY_ENABLED"
|
||||
app:iconSpaceReserved="false"
|
||||
app:key="PREFERENCE_PROXY_URL"
|
||||
app:title="@string/pref_network_proxy_url" />
|
||||
|
||||
<PreferenceCategory
|
||||
app:iconSpaceReserved="false"
|
||||
app:singleLineTitle="false"
|
||||
|
||||
Reference in New Issue
Block a user