From 9c9143cf19332b54b9c25aa30020dc43f8ef4215 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Fri, 9 Dec 2022 21:17:50 +0100 Subject: allow default obfuscation proxy pinning values in RiseupVPN, disallow them in Bitmask --- app/build.gradle | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'app') diff --git a/app/build.gradle b/app/build.gradle index af65493f..f23600f3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -48,9 +48,9 @@ android { // decide if we use obfsvpn or shapeshifter as obfs4 lib buildConfigField 'boolean', 'use_obfsvpn', 'true' // obfsvpn Debugging config fields to pin and configure a particular proxy - buildConfigField "String", "obfsvpn_port", '"443"' - buildConfigField "String", "obfsvpn_ip", '"159.223.173.205"' - buildConfigField "String", "obfsvpn_cert", '"8nuAbPJwFrKc/29KcCfL5LBuEWxQrjBASYXdUbwcm9d9pKseGK4r2Tg47e23+t6WghxGGw"' + buildConfigField "String", "obfsvpn_port", '""' + buildConfigField "String", "obfsvpn_ip", '""' + buildConfigField "String", "obfsvpn_cert", '""' buildConfigField 'boolean', 'obfsvpn_use_kcp', 'false' // static update url pointing to the latest stable release apk @@ -147,10 +147,10 @@ android { // decide if we use obfsvpn or shapeshifter as obfs4 lib buildConfigField 'boolean', 'use_obfsvpn', 'true' // obfsvpn Debugging config fields to pin and configure a particular proxy - buildConfigField "String", "obfsvpn_port", '""' - buildConfigField "String", "obfsvpn_ip", '""' - buildConfigField "String", "obfsvpn_cert", '""' - buildConfigField 'boolean', 'obfsvpn_use_kcp', 'false' + buildConfigField "String", "obfsvpn_port", '"443"' + buildConfigField "String", "obfsvpn_ip", '"159.223.173.205"' + buildConfigField "String", "obfsvpn_cert", '"8nuAbPJwFrKc/29KcCfL5LBuEWxQrjBASYXdUbwcm9d9pKseGK4r2Tg47e23+t6WghxGGw"' + buildConfigField 'boolean', 'obfsvpn_use_kcp', 'true' //Build Config Fields for automatic apk update checks -- cgit v1.2.3 From 14b082f7670b25aabe22a3cd8db334b327645f8f Mon Sep 17 00:00:00 2001 From: cyBerta Date: Mon, 12 Dec 2022 14:06:52 +0100 Subject: setting spannable in ActionBar correctly. Fixes crash --- app/src/main/java/se/leap/bitmaskclient/base/utils/ViewHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/src/main/java/se/leap/bitmaskclient/base/utils/ViewHelper.java b/app/src/main/java/se/leap/bitmaskclient/base/utils/ViewHelper.java index 8076f99e..bbd77c36 100644 --- a/app/src/main/java/se/leap/bitmaskclient/base/utils/ViewHelper.java +++ b/app/src/main/java/se/leap/bitmaskclient/base/utils/ViewHelper.java @@ -61,7 +61,7 @@ public class ViewHelper { public static void setActionBarTextColor(ActionBar bar, @ColorRes int titleColor) { CharSequence titleCharSequence = bar.getTitle(); - if (titleCharSequence == null) { + if (titleCharSequence == null || titleCharSequence.length() == 0) { return; } String title = titleCharSequence.toString(); -- cgit v1.2.3 From 77d3d7fb647632955197a678287b34d4281cbd40 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Mon, 12 Dec 2022 21:51:27 +0100 Subject: fix and unify button text colors --- app/src/custom/res/values/custom-theme.xml | 5 +++++ app/src/main/res/color/button_state_font_color.xml | 5 ----- app/src/main/res/layout/a_add_provider.xml | 2 ++ app/src/main/res/layout/a_add_provider_tablet_scrollview.xml | 2 ++ app/src/main/res/layout/a_provider_credentials.xml | 1 + .../res/layout/a_provider_credentials_tablet_linear_layout.xml | 1 + app/src/main/res/layout/d_obfuscation_proxy.xml | 3 +++ app/src/main/res/layout/donation_reminder_dialog.xml | 4 ++-- app/src/main/res/values/colors.xml | 7 +++++-- app/src/main/res/values/styles.xml | 2 +- 10 files changed, 22 insertions(+), 10 deletions(-) delete mode 100644 app/src/main/res/color/button_state_font_color.xml (limited to 'app') diff --git a/app/src/custom/res/values/custom-theme.xml b/app/src/custom/res/values/custom-theme.xml index 48d04322..4326542c 100644 --- a/app/src/custom/res/values/custom-theme.xml +++ b/app/src/custom/res/values/custom-theme.xml @@ -21,4 +21,9 @@ @color/black800 @color/black800_transparent + + @color/white + @color/black800 + + @color/black800 diff --git a/app/src/main/res/color/button_state_font_color.xml b/app/src/main/res/color/button_state_font_color.xml deleted file mode 100644 index f7fed335..00000000 --- a/app/src/main/res/color/button_state_font_color.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/a_add_provider.xml b/app/src/main/res/layout/a_add_provider.xml index 517c8c19..aad64630 100644 --- a/app/src/main/res/layout/a_add_provider.xml +++ b/app/src/main/res/layout/a_add_provider.xml @@ -70,6 +70,7 @@ android:id="@+id/button_cancel" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:textColor="@color/color_font_btn_primary" android:text="@string/cancel" />