Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c03556f5 authored by cretin45's avatar cretin45
Browse files

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

Change-Id: If17eecb127443d1b0c691af7ff21012a618a1c85
parent 8e52f6ca
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
        }