SetupWizard: Add condition for hiding secure sms option

Change-Id: I0287c8119d56fd9a055caa96c8eaba7fb844f236
This commit is contained in:
cretin45 2015-02-09 10:15:41 -08:00 committed by Gerrit Code Review
parent c8c57d1090
commit 9906c90029

View File

@ -168,7 +168,9 @@ public class CyanogenSettingsPage extends SetupPage {
final int playServicesAvailable = GooglePlayServicesUtil
.isGooglePlayServicesAvailable(context);
return playServicesAvailable != ConnectionResult.SUCCESS
|| (SetupWizardUtils.hasTelephony(context) && SetupWizardUtils.isSimMissing(context));
|| !SetupWizardUtils.hasTelephony(context)
|| (SetupWizardUtils.hasTelephony(context) &&
SetupWizardUtils.isSimMissing(context));
}
public static class CyanogenSettingsFragment extends SetupPageFragment {