summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2020-01-31 17:59:46 -0600
committercyberta <cyberta@riseup.net>2020-01-31 17:59:46 -0600
commit47f463122392963d81c3e12c7ffbb0443bead6ce (patch)
tree10bfa0653f254c97a28bb9ac423e6325d4440cdf /app/src/main/res/layout
parent0c80399b8708027770b591764d70c1cc5853b70f (diff)
add UI in navigation drawer to enable/disable ipv6 firewall and to show/hide experimental features
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/f_drawer_main.xml41
1 files changed, 34 insertions, 7 deletions
diff --git a/app/src/main/res/layout/f_drawer_main.xml b/app/src/main/res/layout/f_drawer_main.xml
index 505bd714..191d547f 100644
--- a/app/src/main/res/layout/f_drawer_main.xml
+++ b/app/src/main/res/layout/f_drawer_main.xml
@@ -88,29 +88,56 @@
android:visibility="gone"
/>
-
<se.leap.bitmaskclient.views.IconTextEntry
- android:id="@+id/tethering"
+ android:id="@+id/exclude_apps"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- app:text="@string/tethering"
- app:icon="@drawable/ic_access_point_36"
+ app:text="@string/exclude_apps_fragment_title"
+ app:icon="@drawable/ic_shield_remove_grey600_36dp"
android:visibility="gone"
/>
+ <TextView
+ android:id="@+id/show_experimental_features"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/show_experimental"
+ android:textColor="@color/colorPrimaryDark"
+ android:paddingTop="6dp"
+ android:paddingBottom="6dp"
+ android:gravity="center"
+ android:background="@color/black800_high_transparent"
+ />
+
+ <se.leap.bitmaskclient.views.IconSwitchEntry
+ android:id="@+id/enableIPv6Firewall"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:text="@string/ipv6Firewall"
+ app:subtitle="@string/require_root"
+ app:icon="@drawable/ic_cancel"
+ android:visibility="gone"
+ tools:visibility="visible"
+ />
+
<se.leap.bitmaskclient.views.IconTextEntry
- android:id="@+id/exclude_apps"
+ android:id="@+id/tethering"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- app:text="@string/exclude_apps_fragment_title"
- app:icon="@drawable/ic_shield_remove_grey600_36dp"
+ app:text="@string/tethering"
+ app:subtitle="@string/require_root"
+ app:icon="@drawable/ic_access_point_36"
android:visibility="gone"
+ tools:visibility="visible"
/>
<View
+ android:id="@+id/experimental_features_footer"
android:layout_width="match_parent"
android:layout_height="20dp"
android:background="@color/black800_high_transparent"
+ android:visibility="gone"
+ tools:visibility="visible"
/>
<se.leap.bitmaskclient.views.IconTextEntry