SetupWizard: Listen for network time events too

Change-Id: I64b1e6c933b5efc189684d7c197f3ea3956a0760
This commit is contained in:
cretin45 2015-02-03 17:02:02 -08:00
parent 3441abdd57
commit c117b980c4
1 changed files with 6 additions and 2 deletions

View File

@ -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;
}