From 0487b4834c42b1bea99275cc0f2c034c0db68f6d Mon Sep 17 00:00:00 2001 From: James Treanor Date: Fri, 5 Jun 2015 16:07:36 +0100 Subject: [PATCH] Fixed some indentation --- src/android/IntercomGCMManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/android/IntercomGCMManager.java b/src/android/IntercomGCMManager.java index 81dbc93..40de62b 100644 --- a/src/android/IntercomGCMManager.java +++ b/src/android/IntercomGCMManager.java @@ -22,7 +22,7 @@ public class IntercomGCMManager { - private static final String PROPERTY_REG_ID = "registration_id"; + private static final String PROPERTY_REG_ID = "registration_id"; private static final String PROPERTY_APP_VERSION = "app_version"; private static long retryTime = 0; @@ -107,11 +107,11 @@ protected Void doInBackground(Void... params) { } catch (IOException ex) { Log.d("GCM_ISSUE", "Error :" + ex.getMessage()); - retryCount++; + retryCount++; - long minBackoffSeconds = (long)Math.pow(2.0, (double)retryCount); - long backOffJitter = (long)(Math.random() * (minBackoffSeconds + 1)); - retryTime = minBackoffSeconds + backOffJitter; + long minBackoffSeconds = (long)Math.pow(2.0, (double)retryCount); + long backOffJitter = (long)(Math.random() * (minBackoffSeconds + 1)); + retryTime = minBackoffSeconds + backOffJitter; //retry the registration after delay gcmHandler.postDelayed(new Runnable() {