diff options
author | cretin45 <cretin45@gmail.com> | 2015-02-03 17:02:02 -0800 |
---|---|---|
committer | cretin45 <cretin45@gmail.com> | 2015-02-03 17:06:38 -0800 |
commit | c117b980c447721f0c7bf4c26a430122de05df05 (patch) | |
tree | 27c40b38f132601eb5826dffa1076c74edf45bbc /src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java | |
parent | 3441abdd57eebbdfefdf793f3e189841720e6058 (diff) | |
download | packages_apps_SetupWizard-c117b980c447721f0c7bf4c26a430122de05df05.zip packages_apps_SetupWizard-c117b980c447721f0c7bf4c26a430122de05df05.tar.gz packages_apps_SetupWizard-c117b980c447721f0c7bf4c26a430122de05df05.tar.bz2 |
SetupWizard: Listen for network time events too
Change-Id: I64b1e6c933b5efc189684d7c197f3ea3956a0760
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java')
-rw-r--r-- | src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java | 8 |
1 files 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; } |