From 0fa7ae499185fefa732a7bc02a8e22ea5da92ec7 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Wed, 2 Aug 2023 12:34:45 +0200 Subject: * Implenting permissionn fragments * refactoring fragments, use of a base fragment to deduplicate code * improve SetupViewPagerAdapter by implementing a factory that hands out the reuired fragments in the correct order * very basic setup success fragment ("You're all set!") --- app/src/main/res/layout/activity_setup.xml | 33 ++++++++-- .../main/res/layout/f_empty_permission_setup.xml | 6 ++ app/src/main/res/layout/f_notification_setup.xml | 34 ++++++++++ app/src/main/res/layout/f_setup_success.xml | 73 ++++++++++++++++++++++ app/src/main/res/layout/f_vpn_permission_setup.xml | 34 ++++++++++ app/src/main/res/values/strings.xml | 6 ++ 6 files changed, 181 insertions(+), 5 deletions(-) create mode 100644 app/src/main/res/layout/f_empty_permission_setup.xml create mode 100644 app/src/main/res/layout/f_notification_setup.xml create mode 100644 app/src/main/res/layout/f_setup_success.xml create mode 100644 app/src/main/res/layout/f_vpn_permission_setup.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_setup.xml b/app/src/main/res/layout/activity_setup.xml index 770b8ab3..bb1682d7 100644 --- a/app/src/main/res/layout/activity_setup.xml +++ b/app/src/main/res/layout/activity_setup.xml @@ -47,7 +47,6 @@ android:layout_margin="4dp" > @@ -60,7 +59,6 @@ android:layout_margin="4dp" > @@ -73,7 +71,6 @@ android:layout_margin="4dp" > @@ -84,9 +81,9 @@ app:cardCornerRadius="6dp" app:cardElevation="0dp" android:layout_margin="4dp" + android:visibility="gone" > @@ -97,9 +94,35 @@ app:cardCornerRadius="6dp" app:cardElevation="0dp" android:layout_margin="4dp" + android:visibility="gone" + > + + + + + + diff --git a/app/src/main/res/layout/f_empty_permission_setup.xml b/app/src/main/res/layout/f_empty_permission_setup.xml new file mode 100644 index 00000000..0fbb55e4 --- /dev/null +++ b/app/src/main/res/layout/f_empty_permission_setup.xml @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/app/src/main/res/layout/f_notification_setup.xml b/app/src/main/res/layout/f_notification_setup.xml new file mode 100644 index 00000000..d9c7d1a3 --- /dev/null +++ b/app/src/main/res/layout/f_notification_setup.xml @@ -0,0 +1,34 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/f_setup_success.xml b/app/src/main/res/layout/f_setup_success.xml new file mode 100644 index 00000000..f48d3487 --- /dev/null +++ b/app/src/main/res/layout/f_setup_success.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/f_vpn_permission_setup.xml b/app/src/main/res/layout/f_vpn_permission_setup.xml new file mode 100644 index 00000000..99dd531b --- /dev/null +++ b/app/src/main/res/layout/f_vpn_permission_setup.xml @@ -0,0 +1,34 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index afb073f1..90d06333 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -230,5 +230,11 @@ Snowflake SOCKS error Snowflake proxy rendezvous successful Sending data via Snowflake + Upcoming Connection Request + In the next panel Android will remind you that it’s essential to trust your VPN provider. Bitmask only partners with providers that adhere to strict privacy best practices for VPNs and have a verifiable history of protecting user’s data and identities. + Upcoming Notifications Request + In the next panel Android will ask if you want to allow notifications. This will ensure a stable background connection and enable you to see your data usage from within Android’s notification center. + You\'re all set! + Click the button below to connect -- cgit v1.2.3