diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-01-15 11:56:22 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-01-15 11:56:22 +0100 |
commit | ef114b76c1fd420339ec9f84c9538507d5fb7fbf (patch) | |
tree | ec2ef09de9afa07d0beee736822d93391178e0ea /src/playstore/java/de/pixart/messenger/services | |
parent | 233c1a1da7a1946bada25c86361de005672557b6 (diff) |
show doze warning when push is running on prosody
Diffstat (limited to 'src/playstore/java/de/pixart/messenger/services')
-rw-r--r-- | src/playstore/java/de/pixart/messenger/services/PushManagementService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/playstore/java/de/pixart/messenger/services/PushManagementService.java b/src/playstore/java/de/pixart/messenger/services/PushManagementService.java index 9680a65c2..701eea6d2 100644 --- a/src/playstore/java/de/pixart/messenger/services/PushManagementService.java +++ b/src/playstore/java/de/pixart/messenger/services/PushManagementService.java @@ -104,6 +104,10 @@ public class PushManagementService { return connection != null && connection.getFeatures().push() && playServicesAvailable(); } + public boolean availableAndUseful(Account account) { + return account.getServerIdentity() == XmppConnection.Identity.EJABBERD && available(account); + } + private boolean playServicesAvailable() { return GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(mXmppConnectionService) == ConnectionResult.SUCCESS; } |