Don't try to unregister for GCM if Play Services doesn't exist

Fixes #6314
// FREEBIE
fork-5.53.8
Moxie Marlinspike 2017-02-28 16:59:15 -08:00
rodzic 9b8719e2d5
commit cb6e048070
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -234,7 +234,9 @@ public class AdvancedPreferenceFragment extends PreferenceFragment {
Log.w(TAG, e);
}
if (!TextSecurePreferences.isGcmDisabled(context)) {
GoogleCloudMessaging.getInstance(context).unregister();
}
return SUCCESS;
} catch (IOException ioe) {