summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/build.gradle10
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/base/BitmaskTileService.java5
2 files changed, 10 insertions, 5 deletions
diff --git a/app/build.gradle b/app/build.gradle
index cfd37d04..1a15f470 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -29,13 +29,13 @@ android {
//This is the default donation URL and should be set to the donation page of LEAP
// and this should not be set/altered anywhere else.
- buildConfigField 'String', 'default_donation_url', '"https://leap.se/donate/"'
+ buildConfigField 'String', 'default_donation_url', '"https://riseup.net/vpn/donate"'
//The field to enable donations in the app.
- buildConfigField 'boolean', 'enable_donation', 'false'
+ buildConfigField 'boolean', 'enable_donation', 'true'
//The field to enable donation reminder popup in the app if enable_donation is set to 'false' this will be disabled.
- buildConfigField 'boolean', 'enable_donation_reminder', 'false'
+ buildConfigField 'boolean', 'enable_donation_reminder', 'true'
//The duration in days to trigger the donation reminder
- buildConfigField 'int', 'donation_reminder_duration', '30'
+ buildConfigField 'int', 'donation_reminder_duration', '7'
//skip the account creation / login screen if the provider offers anonymous vpn usage, use directly the anonymous cert instead
buildConfigField 'boolean', 'priotize_anonymous_usage', 'false'
//allow manual gateway selection
@@ -153,7 +153,7 @@ android {
//The field to enable donation reminder popup in the app if enable_donation is set to 'false' this will be disabled.
buildConfigField 'boolean', 'enable_donation_reminder', 'true'
//The duration in days to trigger the donation reminder
- buildConfigField 'int', 'donation_reminder_duration', '30'
+ buildConfigField 'int', 'donation_reminder_duration', '7'
// Build apks for each architecture, in addition to one 'fat' apk containing libraries for all all architectures
// enable this if you're publishing in gplay
diff --git a/app/src/main/java/se/leap/bitmaskclient/base/BitmaskTileService.java b/app/src/main/java/se/leap/bitmaskclient/base/BitmaskTileService.java
index 65355a67..370a7af6 100644
--- a/app/src/main/java/se/leap/bitmaskclient/base/BitmaskTileService.java
+++ b/app/src/main/java/se/leap/bitmaskclient/base/BitmaskTileService.java
@@ -71,6 +71,11 @@ public class BitmaskTileService extends TileService implements Observer {
@Override
public void update(Observable o, Object arg) {
Tile t = getQsTile();
+ // Tile t should never be null according to https://developer.android.com/reference/kotlin/android/service/quicksettings/TileService.
+ // Hovever we've got crash reports.
+ if (t == null) {
+ return;
+ }
if (o instanceof EipStatus) {
EipStatus status = (EipStatus) o;