Actually show the GMS update dialog

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-03-12 10:56:51 -07:00
parent 12b27cc56b
commit 3127fda7fe

View File

@ -227,7 +227,7 @@ public class RegistrationActivity extends BaseActionBarActivity {
} else if (gcmStatus == PlayServicesStatus.MISSING) { } else if (gcmStatus == PlayServicesStatus.MISSING) {
promptForNoPlayServices(self, e164number); promptForNoPlayServices(self, e164number);
} else if (gcmStatus == PlayServicesStatus.NEEDS_UPDATE) { } else if (gcmStatus == PlayServicesStatus.NEEDS_UPDATE) {
GoogleApiAvailability.getInstance().getErrorDialog(self, ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED, 0); GoogleApiAvailability.getInstance().getErrorDialog(self, ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED, 0).show();
} else { } else {
Dialogs.showAlertDialog(self, getString(R.string.RegistrationActivity_play_services_error), Dialogs.showAlertDialog(self, getString(R.string.RegistrationActivity_play_services_error),
getString(R.string.RegistrationActivity_google_play_services_is_updating_or_unavailable)); getString(R.string.RegistrationActivity_google_play_services_is_updating_or_unavailable));