mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-06 03:49:58 +02:00
disable push notifications setting if apk was built without support
This commit is contained in:
parent
1b80bc32dd
commit
178331ce2a
4 changed files with 12 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue