summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorNorbel AMBANUMBEN <aanorbel@gmail.com>2024-11-07 07:44:34 +0100
committercyBerta <cyberta@riseup.net>2024-11-28 22:53:30 +0100
commit56717309981f3458e7b2cf202e56308ebc7522c4 (patch)
treeb839f75530a85e9a96ced6d96af15c6726f627a0 /app/src/main/res
parent7e72d95516f375ab55e24659dd7f21948fe87070 (diff)
updated settings
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/f_censorship_circumvention.xml2
-rw-r--r--app/src/main/res/layout/f_settings.xml33
-rw-r--r--app/src/main/res/values/strings.xml1
3 files changed, 28 insertions, 8 deletions
diff --git a/app/src/main/res/layout/f_censorship_circumvention.xml b/app/src/main/res/layout/f_censorship_circumvention.xml
index 907b3b02..6e2d7b5d 100644
--- a/app/src/main/res/layout/f_censorship_circumvention.xml
+++ b/app/src/main/res/layout/f_censorship_circumvention.xml
@@ -59,7 +59,7 @@
android:layout_height="wrap_content"
android:paddingTop="@dimen/stdpadding"
app:text="@string/port_hopping"
- app:subtitle="\n"
+ app:subtitle="@string/port_hopping_description"
app:singleLine="false" />
</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/f_settings.xml b/app/src/main/res/layout/f_settings.xml
index e45f0bac..e7b4356f 100644
--- a/app/src/main/res/layout/f_settings.xml
+++ b/app/src/main/res/layout/f_settings.xml
@@ -62,14 +62,33 @@
app:icon="@drawable/bridge_automatic"
app:singleLine="false" />
- <se.leap.bitmaskclient.base.views.IconSwitchEntry
- android:id="@+id/bridge_manual_switch"
- android:layout_width="match_parent"
+ <LinearLayout
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- app:text="@string/manual_bridge"
- app:subtitle="@string/manual_bridge_description"
- app:icon="@drawable/bridge_manual"
- app:singleLine="false" />
+ android:orientation="horizontal">
+ <se.leap.bitmaskclient.base.views.IconTextEntry
+ android:id="@+id/bridge_manual_switch"
+ android:layout_width="0dp"
+ android:layout_weight="1"
+ android:layout_height="wrap_content"
+ app:text="@string/manual_bridge"
+ app:subtitle="@string/manual_bridge_description"
+ app:icon="@drawable/bridge_manual"
+ app:singleLine="false" />
+ <View
+ android:layout_width="1px"
+ android:background="@android:color/darker_gray"
+ android:layout_marginHorizontal="@dimen/stdpadding"
+ android:layout_marginVertical="@dimen/stdpadding"
+ android:layout_height="match_parent"/>
+ <androidx.appcompat.widget.SwitchCompat
+ android:id="@+id/bridge_manual_switch_control"
+ android:layout_gravity="center"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
+ android:paddingRight="?android:attr/listPreferredItemPaddingRight"/>
+ </LinearLayout>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/experimental_header"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 14a884b3..656a8ea5 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -261,4 +261,5 @@
<string name="tunnelling">Tunneling</string>
<string name="tunnelling_description">Censors can block access to the open internet. Choose a circumvention option to bypass blocks.</string>
<string name="port_hopping">Port Hopping</string>
+ <string name="port_hopping_description">"Censors use traffic analysis to block access to the open internet. Port Hopping can make this harder for them. "</string>
</resources>