aboutsummaryrefslogtreecommitdiffstats
path: root/src/playstore/java/eu/siacs
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-02-14 18:19:11 +0100
committerDaniel Gultsch <daniel@gultsch.de>2016-02-14 18:19:11 +0100
commit356199978eaef303cef7faa90280dafb0425af71 (patch)
treea905fefcc8f6decdfc01dba75e9791e1c17070fb /src/playstore/java/eu/siacs
parent92a6e956fd90c71091c9d8348804e5f285382f32 (diff)
fixed server info push not showing up when unavailable
Diffstat (limited to 'src/playstore/java/eu/siacs')
-rw-r--r--src/playstore/java/eu/siacs/conversations/services/PushManagementService.java8
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 fbd768cf..3fdaf832 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);
}