disable push notifications setting if apk was built without support

This commit is contained in:
adbenitez 2024-06-12 03:49:45 +02:00
parent 1b80bc32dd
commit 178331ce2a
4 changed files with 12 additions and 6 deletions

View file

@ -173,9 +173,7 @@ public class Prefs {
}
public static boolean isPushEnabled(Context context) {
// Do not use PUSH for the the default application ID "com.b44t.messenger" which is used eg. used by F-Droid
boolean defaultPush = !BuildConfig.APPLICATION_ID.equals("com.b44t.messenger");
return getBooleanPreference(context, "pref_push_enabled", defaultPush);
return BuildConfig.USE_PLAY_SERVICES && getBooleanPreference(context, "pref_push_enabled", true);
}
public static boolean isHardCompressionEnabled(Context context) {