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

Commit c117b980 authored by cretin45's avatar cretin45
Browse files

SetupWizard: Listen for network time events too

Change-Id: I64b1e6c933b5efc189684d7c197f3ea3956a0760
parent 3441abdd
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -82,9 +82,11 @@ public class CMSetupWizardData extends AbstractSetupData {
           if (slot != -1 && mSimStates.length > 0) {
               mSimStates[slot] = mTelephonyManager.getSimState(slot);
           }
        } else if (intent.getAction().equals(Intent.ACTION_TIMEZONE_CHANGED)) {
        } else if (intent.getAction().equals(Intent.ACTION_TIMEZONE_CHANGED) ||
                intent.getAction().equals(TelephonyIntents.ACTION_NETWORK_SET_TIMEZONE)) {
            mTimeZoneSet = true;
        } else if (intent.getAction().equals(Intent.ACTION_TIME_CHANGED)) {
        } else if (intent.getAction().equals(Intent.ACTION_TIME_CHANGED) ||
                intent.getAction().equals(TelephonyIntents.ACTION_NETWORK_SET_TIME)) {
            mTimeSet = true;
        }
        DateTimePage dateTimePage = (DateTimePage) getPage(DateTimePage.TAG);
@@ -108,6 +110,8 @@ public class CMSetupWizardData extends AbstractSetupData {
        filter.addAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED);
        filter.addAction(Intent.ACTION_TIMEZONE_CHANGED);
        filter.addAction(Intent.ACTION_TIME_CHANGED);
        filter.addAction(TelephonyIntents.ACTION_NETWORK_SET_TIME);
        filter.addAction(TelephonyIntents.ACTION_NETWORK_SET_TIMEZONE);
        return filter;
    }