diff options
author | cyBerta <cyberta@riseup.net> | 2021-11-25 12:23:04 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-11-25 12:23:04 +0100 |
commit | 0ccec2d3bd7c7f890f7b651110ea10a8933eab29 (patch) | |
tree | 6809b31be22162523a187ad65b2d18048b7e2e0f /app/src/main/res | |
parent | dcee5f2fa1dc67e5b08223db3441da8bd38e8b20 (diff) |
implement UI, logic and test for prefer UDP preferences
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/ic_multiple_stop.xml | 10 | ||||
-rw-r--r-- | app/src/main/res/layout/f_settings.xml | 3 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 3 |
3 files changed, 14 insertions, 2 deletions
diff --git a/app/src/main/res/drawable/ic_multiple_stop.xml b/app/src/main/res/drawable/ic_multiple_stop.xml new file mode 100644 index 00000000..c43c84f3 --- /dev/null +++ b/app/src/main/res/drawable/ic_multiple_stop.xml @@ -0,0 +1,10 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24" + android:tint="?attr/colorControlNormal"> + <path + android:fillColor="@android:color/white" + android:pathData="M17,4l4,4l-4,4V9h-4V7h4V4zM10,7C9.45,7 9,7.45 9,8s0.45,1 1,1s1,-0.45 1,-1S10.55,7 10,7zM6,7C5.45,7 5,7.45 5,8s0.45,1 1,1s1,-0.45 1,-1S6.55,7 6,7zM7,17h4v-2H7v-3l-4,4l4,4V17zM14,17c0.55,0 1,-0.45 1,-1c0,-0.55 -0.45,-1 -1,-1s-1,0.45 -1,1C13,16.55 13.45,17 14,17zM18,17c0.55,0 1,-0.45 1,-1c0,-0.55 -0.45,-1 -1,-1s-1,0.45 -1,1C17,16.55 17.45,17 18,17z"/> +</vector> diff --git a/app/src/main/res/layout/f_settings.xml b/app/src/main/res/layout/f_settings.xml index b625d548..1851fb54 100644 --- a/app/src/main/res/layout/f_settings.xml +++ b/app/src/main/res/layout/f_settings.xml @@ -35,7 +35,7 @@ android:visibility="visible" /> - <!-- <se.leap.bitmaskclient.base.views.IconSwitchEntry + <se.leap.bitmaskclient.base.views.IconSwitchEntry android:id="@+id/prefer_udp" android:layout_width="match_parent" android:layout_height="wrap_content" @@ -44,7 +44,6 @@ app:icon="@drawable/ic_multiple_stop" app:singleLine="false" /> - --> <androidx.appcompat.widget.AppCompatTextView android:id="@+id/circumvention_header" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c49a456e..9ef0b9a5 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -188,5 +188,8 @@ <string name="use_snowflake">Use Snowflake</string> <string name="snowflake_description">Circumvent blocking of the provider\'s configuration server.</string> <string name="vpn_settings">VPN settings</string> + <string name="prefer_udp">Use UDP if available</string> + <string name="prefer_udp_subtitle">UDP can be faster and better for streaming, but does not work for all networks.</string> + </resources> |