SetupWizard: Ensure compliance with GMS TOS
* Launches GMS TOS per documentation * Filters out redundant location page if GMS present * Uses setupwizardlib for some helper functions * Hide notification icons Issue-id: CYNGNOS-2599 Change-Id: I4b59592f0b84d0eb0eafe365eab3bad77c1f76ff
This commit is contained in:
@@ -113,8 +113,13 @@ public class CMSetupWizardData extends AbstractSetupData {
|
||||
boolean isConnected = SetupWizardUtils.isNetworkConnected(mContext);
|
||||
GmsAccountPage gmsAccountPage =
|
||||
(GmsAccountPage) getPage(GmsAccountPage.TAG);
|
||||
OtherSettingsPage otherSettingsPage = (OtherSettingsPage) getPage(OtherSettingsPage.TAG);
|
||||
if (gmsAccountPage != null) {
|
||||
gmsAccountPage.setHidden(!isConnected && gmsAccountPage.canSkip());
|
||||
boolean hidden = !isConnected && gmsAccountPage.canSkip();
|
||||
gmsAccountPage.setHidden(hidden);
|
||||
if (otherSettingsPage != null) {
|
||||
otherSettingsPage.setHidden(!hidden);
|
||||
}
|
||||
}
|
||||
CyanogenServicesPage cyanogenServicesPage =
|
||||
(CyanogenServicesPage) getPage(CyanogenServicesPage.TAG);
|
||||
|
Reference in New Issue
Block a user