Implemented the alert dialog for checking the type of internet connection

This commit is contained in:
CappielloAntonio 2021-09-13 09:24:58 +02:00
parent 5fc09cfcf8
commit 77c45e2fec
6 changed files with 102 additions and 3 deletions

View file

@ -0,0 +1,15 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="24dp"
android:layout_marginBottom="4dp"
android:layout_marginEnd="24dp"
android:gravity="center"
android:text="@string/connection_alert_dialog_summary" />
</LinearLayout>

View file

@ -184,4 +184,9 @@
<string name="server_unreachable_dialog_positive_button">Continue anyway</string>
<string name="server_unreachable_dialog_title">Server unreachable</string>
<string name="server_unreachable_dialog_summary">The requested server is unavailable. Please contact your support and describe your issue.</string>
<string name="connection_alert_dialog_title">Wi-Fi not connected</string>
<string name="connection_alert_dialog_positive_button">Continue anyway</string>
<string name="connection_alert_dialog_neutral_button">Enable data saver</string>
<string name="connection_alert_dialog_negative_button">Cancel</string>
<string name="connection_alert_dialog_summary">Access to the Subsonic server on connections other than WiFi has been restricted. To prevent this alert dialod from reappearing, disable the connection check in the app settings.</string>
</resources>