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