From c117b980c447721f0c7bf4c26a430122de05df05 Mon Sep 17 00:00:00 2001 From: cretin45 Date: Tue, 3 Feb 2015 17:02:02 -0800 Subject: [PATCH] SetupWizard: Listen for network time events too Change-Id: I64b1e6c933b5efc189684d7c197f3ea3956a0760 --- .../cyanogenmod/setupwizard/setup/CMSetupWizardData.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java b/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java index a75e0c1..ce7da8b 100644 --- a/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java +++ b/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java @@ -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; }