From a1da22cee9e2e881e70cb85866aa66f618a85d0a Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Sat, 29 Nov 2014 13:12:53 -0800 Subject: [PATCH] Use constant. // FREEBIE Closes #1988 --- .../thoughtcrime/securesms/service/RegistrationService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/service/RegistrationService.java b/src/org/thoughtcrime/securesms/service/RegistrationService.java index 0887c7376f..fa70f39d73 100644 --- a/src/org/thoughtcrime/securesms/service/RegistrationService.java +++ b/src/org/thoughtcrime/securesms/service/RegistrationService.java @@ -16,6 +16,7 @@ import org.thoughtcrime.securesms.R; import org.thoughtcrime.securesms.crypto.IdentityKeyUtil; import org.thoughtcrime.securesms.crypto.MasterSecret; import org.thoughtcrime.securesms.crypto.PreKeyUtil; +import org.thoughtcrime.securesms.jobs.GcmRefreshJob; import org.thoughtcrime.securesms.push.TextSecureCommunicationFactory; import org.thoughtcrime.securesms.util.DirectoryHelper; import org.thoughtcrime.securesms.util.TextSecurePreferences; @@ -237,7 +238,7 @@ public class RegistrationService extends Service { setState(new RegistrationState(RegistrationState.STATE_GCM_REGISTERING, number)); - String gcmRegistrationId = GoogleCloudMessaging.getInstance(this).register("312334754206"); + String gcmRegistrationId = GoogleCloudMessaging.getInstance(this).register(GcmRefreshJob.REGISTRATION_ID); TextSecurePreferences.setGcmRegistrationId(this, gcmRegistrationId); accountManager.setGcmId(Optional.of(gcmRegistrationId));