Fix notification on FDroid

This commit is contained in:
Benoit Marty 2019-06-26 13:32:55 +02:00
parent bec5ca1420
commit 0c0ef38b4f
2 changed files with 3 additions and 3 deletions

View File

@ -4,6 +4,7 @@


<uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />


<application> <application>


@ -17,8 +18,7 @@
<receiver <receiver
android:name=".core.services.AlarmSyncBroadcastReceiver" android:name=".core.services.AlarmSyncBroadcastReceiver"
android:enabled="true" android:enabled="true"
android:exported="false"> android:exported="false" />
</receiver>


</application> </application>



View File

@ -244,7 +244,7 @@ public class PreferencesManager {
} }


public static boolean areNotificationEnabledForDevice(Context context) { public static boolean areNotificationEnabledForDevice(Context context) {
return PreferenceManager.getDefaultSharedPreferences(context).getBoolean(SETTINGS_ENABLE_THIS_DEVICE_PREFERENCE_KEY, false); return PreferenceManager.getDefaultSharedPreferences(context).getBoolean(SETTINGS_ENABLE_THIS_DEVICE_PREFERENCE_KEY, true);
} }


/** /**