From e142cb6d2638e1e83b2c4a91db80e2d810a33c73 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Thu, 12 Mar 2015 18:35:06 -0700 Subject: [PATCH] Prompt for registration on install until successful. Closes #2657 // FREEBIE --- src/org/thoughtcrime/securesms/RegistrationActivity.java | 2 -- src/org/thoughtcrime/securesms/service/RegistrationService.java | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/RegistrationActivity.java b/src/org/thoughtcrime/securesms/RegistrationActivity.java index fd435d860c..0e289178c3 100644 --- a/src/org/thoughtcrime/securesms/RegistrationActivity.java +++ b/src/org/thoughtcrime/securesms/RegistrationActivity.java @@ -160,8 +160,6 @@ public class RegistrationActivity extends BaseActionBarActivity { public void onClick(View v) { final RegistrationActivity self = RegistrationActivity.this; - TextSecurePreferences.setPromptedPushRegistration(self, true); - if (TextUtils.isEmpty(countryCode.getText())) { Toast.makeText(self, getString(R.string.RegistrationActivity_you_must_specify_your_country_code), diff --git a/src/org/thoughtcrime/securesms/service/RegistrationService.java b/src/org/thoughtcrime/securesms/service/RegistrationService.java index b1fd67ee50..9650958c44 100644 --- a/src/org/thoughtcrime/securesms/service/RegistrationService.java +++ b/src/org/thoughtcrime/securesms/service/RegistrationService.java @@ -292,6 +292,7 @@ public class RegistrationService extends Service { TextSecurePreferences.setPushServerPassword(this, password); TextSecurePreferences.setSignalingKey(this, signalingKey); TextSecurePreferences.setSignedPreKeyRegistered(this, true); + TextSecurePreferences.setPromptedPushRegistration(this, true); } private void setState(RegistrationState state) {