diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-02-14 18:19:11 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-02-14 18:19:11 +0100 |
commit | 356199978eaef303cef7faa90280dafb0425af71 (patch) | |
tree | a905fefcc8f6decdfc01dba75e9791e1c17070fb /src/playstore/java/eu/siacs/conversations/services | |
parent | 92a6e956fd90c71091c9d8348804e5f285382f32 (diff) |
fixed server info push not showing up when unavailable
Diffstat (limited to 'src/playstore/java/eu/siacs/conversations/services')
-rw-r--r-- | src/playstore/java/eu/siacs/conversations/services/PushManagementService.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/playstore/java/eu/siacs/conversations/services/PushManagementService.java b/src/playstore/java/eu/siacs/conversations/services/PushManagementService.java index fbd768cf2..3fdaf8326 100644 --- a/src/playstore/java/eu/siacs/conversations/services/PushManagementService.java +++ b/src/playstore/java/eu/siacs/conversations/services/PushManagementService.java @@ -76,9 +76,9 @@ public class PushManagementService { @Override public void onIqPacketReceived(Account account, IqPacket packet) { if (packet.getType() == IqPacket.TYPE.RESULT) { - Log.d(Config.LOGTAG,account.getJid().toBareJid()+": successfully enabled push on server"); + Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": successfully enabled push on server"); } else if (packet.getType() == IqPacket.TYPE.ERROR) { - Log.d(Config.LOGTAG,account.getJid().toBareJid()+": enabling push on server failed"); + Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": enabling push on server failed"); } } }); @@ -109,6 +109,10 @@ public class PushManagementService { return GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(mXmppConnectionService) == ConnectionResult.SUCCESS; } + public boolean isStub() { + return false; + } + interface OnGcmInstanceTokenRetrieved { void onGcmInstanceTokenRetrieved(String token); } |