diff --git a/src/org/thoughtcrime/securesms/jobs/GcmRefreshJob.java b/src/org/thoughtcrime/securesms/jobs/GcmRefreshJob.java index ab50ff98cc..25b10041e4 100644 --- a/src/org/thoughtcrime/securesms/jobs/GcmRefreshJob.java +++ b/src/org/thoughtcrime/securesms/jobs/GcmRefreshJob.java @@ -62,8 +62,6 @@ public class GcmRefreshJob extends ContextJob { if (result != ConnectionResult.SUCCESS) { notifyGcmFailure(); - accountManager.setGcmId(Optional.absent()); - TextSecurePreferences.setPushRegistered(context, false); } else { String gcmId = GoogleCloudMessaging.getInstance(context).register(REGISTRATION_ID); accountManager.setGcmId(Optional.of(gcmId)); @@ -94,6 +92,7 @@ public class GcmRefreshJob extends ContextJob { builder.setContentTitle(context.getString(R.string.GcmRefreshJob_Permanent_TextSecure_communication_failure)); builder.setContentText(context.getString(R.string.GcmRefreshJob_TextSecure_was_unable_to_register_with_Google_Play_Services)); builder.setTicker(context.getString(R.string.GcmRefreshJob_Permanent_TextSecure_communication_failure)); + builder.setVibrate(new long[] {0, 1000}); builder.setContentIntent(pendingIntent); ((NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE))