summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2015-02-03 17:02:02 -0800
committercretin45 <cretin45@gmail.com>2015-02-03 17:06:38 -0800
commitc117b980c447721f0c7bf4c26a430122de05df05 (patch)
tree27c40b38f132601eb5826dffa1076c74edf45bbc /src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java
parent3441abdd57eebbdfefdf793f3e189841720e6058 (diff)
downloadpackages_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.java8
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;
}