forked from GitHub-Mirror/riotX-android
Fix notification on FDroid
This commit is contained in:
parent
bec5ca1420
commit
0c0ef38b4f
@ -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>
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user