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.
This commit is contained in:
B. Petersen
2020-05-10 00:27:52 +02:00
parent b2743af10c
commit b0641a49c3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -59,7 +59,7 @@
android:entryValues="@array/pref_notification_priority_values"/>
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="true"
android:defaultValue="false"
android:key="pref_reliable_service"
android:title="@string/pref_reliable_service"
android:summary="@string/pref_reliable_service_explain"/>
@@ -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;