From b0641a49c3b39958a43aa77aadcc86dec9fef19d Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Sun, 10 May 2020 00:27:52 +0200 Subject: [PATCH] change default for 'reliable background service' to false reason is that ppl are pretty annoyed by the permanant notification, that might have been expected and that would be okay. but, more worse, for whatever reasons, this drains more battery on some systems than having just "allow consuming battery" enabled, maybe some system do not go to doze mode because of the permantent-notification. anyway, to avoid initial annoyances, we switch back to - asking the user to "allow consuming battery" - having a 15 mintues or so polling interval (as on iOS) but, in contrast to 1.3, we now still have the _option_ to enable a permantent-notification that user can enabled if everything else described at https://dontkillmyapp.com does not work. the "smart" permantent notification from 1.3, that are only shown under some circumstances, however, are gone. they are not realiable, eg. we did not use them when "consume battery" was enabled - which is not sufficient on various "modern" systems. but the main reason is that _if_ the user enables a permantent notification, this can also be regarded as a hint that things are up and running. --- res/xml/preferences_notifications.xml | 2 +- src/org/thoughtcrime/securesms/util/Prefs.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/xml/preferences_notifications.xml b/res/xml/preferences_notifications.xml index 976e142c1..d0e4c5af4 100644 --- a/res/xml/preferences_notifications.xml +++ b/res/xml/preferences_notifications.xml @@ -59,7 +59,7 @@ android:entryValues="@array/pref_notification_priority_values"/> diff --git a/src/org/thoughtcrime/securesms/util/Prefs.java b/src/org/thoughtcrime/securesms/util/Prefs.java index e1c1aa6e9..0c69a5602 100644 --- a/src/org/thoughtcrime/securesms/util/Prefs.java +++ b/src/org/thoughtcrime/securesms/util/Prefs.java @@ -236,7 +236,7 @@ public class Prefs { public static boolean reliableService(Context context) { try { - return getBooleanPreference(context, "pref_reliable_service", true); + return getBooleanPreference(context, "pref_reliable_service", false); } catch(Exception e) { return false;