mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-12 10:17:45 +00:00
Don't try to unregister for GCM if Play Services doesn't exist
Fixes #6314 // FREEBIE
This commit is contained in:
@@ -234,7 +234,9 @@ public class AdvancedPreferenceFragment extends PreferenceFragment {
|
||||
Log.w(TAG, e);
|
||||
}
|
||||
|
||||
GoogleCloudMessaging.getInstance(context).unregister();
|
||||
if (!TextSecurePreferences.isGcmDisabled(context)) {
|
||||
GoogleCloudMessaging.getInstance(context).unregister();
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
} catch (IOException ioe) {
|
||||
|
Reference in New Issue
Block a user