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.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

<application>

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

</application>


View File

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

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);
}

/**