From d8d043125b904c33ffb4dc8b39fe7d9ef4d3683a Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 25 Jun 2018 15:05:50 +0200 Subject: [PATCH] add expert preference to disable all notifications This preference is meant for whitelabel builds that are meant to be entirely controlled by the server, without user interaction, e.g. "appliances". Some users have asked for such a thing, so it makes sense to have it available as an expert preference. In general, we want to ensure that installs/updates always show a notification so that the user is aware of what is being installed on their computers. That is the same policy as other app stores like Google Play, etc. --- app/src/basic/res/xml/preferences.xml | 6 ++++++ .../main/java/org/fdroid/fdroid/NotificationHelper.java | 4 ++-- app/src/main/java/org/fdroid/fdroid/Preferences.java | 9 +++++++++ app/src/main/res/values/strings.xml | 4 ++++ app/src/main/res/xml/preferences.xml | 6 ++++++ 5 files changed, 27 insertions(+), 2 deletions(-) diff --git a/app/src/basic/res/xml/preferences.xml b/app/src/basic/res/xml/preferences.xml index c1e62f5ca..6744145bb 100644 --- a/app/src/basic/res/xml/preferences.xml +++ b/app/src/basic/res/xml/preferences.xml @@ -144,6 +144,12 @@ android:summary="@string/keep_install_history_summary" android:defaultValue="false" android:dependency="expert"/> + Updates Unstable updates Suggest updates to unstable versions + Hide all notifications + Prevent all actions from showing in the status bar and notification + drawer. + Keep install history Store a log of all installs and uninstalls in a private store Force old index format diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 84b3c138d..201964225 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -165,6 +165,12 @@ android:summary="@string/keep_install_history_summary" android:defaultValue="false" android:dependency="expert"/> +