SetupWizard : Switch to mcc/mnc locale

Also ensure we only send stats event once and
only if the user actually changed the locale.

CYNGNOS-1521
CYNGNOS-1326

Change-Id: I7b0451137e6bf80bf71350da28fe391fc8c52ce8
This commit is contained in:
Danesh M
2016-01-18 18:39:02 -08:00
parent f8e4ab690f
commit d59304c730
2 changed files with 55 additions and 6 deletions

View File

@@ -89,6 +89,7 @@ public class CMSetupWizardData extends AbstractSetupData {
showHideDataSimPage();
showHideSimMissingPage();
showHideMobileDataPage();
updateWelcomePage();
} else if (intent.getAction()
.equals(ConnectivityManager.CONNECTIVITY_ACTION)) {
showHideMobileDataPage();
@@ -160,6 +161,13 @@ public class CMSetupWizardData extends AbstractSetupData {
}
}
private void updateWelcomePage() {
WelcomePage welcomePage = (WelcomePage) getPage(WelcomePage.TAG);
if (welcomePage != null) {
welcomePage.simChanged();
}
}
public IntentFilter getIntentFilter() {
IntentFilter filter = new IntentFilter();
if (SetupWizardUtils.hasTelephony(mContext)) {