mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2025-01-23 01:17:32 +01:00
GoogleCloudMessaging getMessageType shouldn't throw IOException
This commit is contained in:
parent
74213474b5
commit
0522ed41fb
@ -167,7 +167,7 @@ public class GoogleCloudMessaging {
|
|||||||
*
|
*
|
||||||
* @return The message type or null if the intent is not a GCM intent
|
* @return The message type or null if the intent is not a GCM intent
|
||||||
*/
|
*/
|
||||||
public String getMessageType(Intent intent) throws IOException {
|
public String getMessageType(Intent intent) {
|
||||||
if (intent == null || !ACTION_C2DM_RECEIVE.equals(intent.getAction())) return null;
|
if (intent == null || !ACTION_C2DM_RECEIVE.equals(intent.getAction())) return null;
|
||||||
if (!intent.hasExtra(EXTRA_MESSAGE_TYPE)) return MESSAGE_TYPE_MESSAGE;
|
if (!intent.hasExtra(EXTRA_MESSAGE_TYPE)) return MESSAGE_TYPE_MESSAGE;
|
||||||
return intent.getStringExtra(EXTRA_MESSAGE_TYPE);
|
return intent.getStringExtra(EXTRA_MESSAGE_TYPE);
|
||||||
@ -319,4 +319,4 @@ public class GoogleCloudMessaging {
|
|||||||
}
|
}
|
||||||
return InstanceID.getInstance(context).getStore().get("", to, INSTANCE_ID_SCOPE);
|
return InstanceID.getInstance(context).getStore().get("", to, INSTANCE_ID_SCOPE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user