SetupWizard: Don't register for secure sms if not selected

Change-Id: If17eecb127443d1b0c691af7ff21012a618a1c85
This commit is contained in:
cretin45 2015-02-06 12:58:38 -08:00
parent 8e52f6cac7
commit c03556f5ae
1 changed files with 3 additions and 1 deletions

View File

@ -128,7 +128,9 @@ public class CyanogenSettingsPage extends SetupPage {
private void handleWhisperPushRegistration() {
Bundle privacyData = getData();
if (privacyData != null && privacyData.containsKey(CyanogenSettingsPage.KEY_REGISTER_WHISPERPUSH)) {
if (privacyData != null &&
privacyData.containsKey(CyanogenSettingsPage.KEY_REGISTER_WHISPERPUSH) &&
privacyData.getBoolean(CyanogenSettingsPage.KEY_REGISTER_WHISPERPUSH)) {
Log.i(TAG, "Registering with WhisperPush");
WhisperPushUtils.startRegistration(mContext);
}