From 0522ed41fb28e44c24cbbf8ecf2659153b8248ec Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Fri, 14 Dec 2018 12:31:44 +0300 Subject: [PATCH] GoogleCloudMessaging getMessageType shouldn't throw IOException --- .../java/com/google/android/gms/gcm/GoogleCloudMessaging.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/play-services-gcm/src/main/java/com/google/android/gms/gcm/GoogleCloudMessaging.java b/play-services-gcm/src/main/java/com/google/android/gms/gcm/GoogleCloudMessaging.java index 619a39ff..06546d7b 100644 --- a/play-services-gcm/src/main/java/com/google/android/gms/gcm/GoogleCloudMessaging.java +++ b/play-services-gcm/src/main/java/com/google/android/gms/gcm/GoogleCloudMessaging.java @@ -167,7 +167,7 @@ public class GoogleCloudMessaging { * * @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.hasExtra(EXTRA_MESSAGE_TYPE)) return MESSAGE_TYPE_MESSAGE; return intent.getStringExtra(EXTRA_MESSAGE_TYPE); @@ -319,4 +319,4 @@ public class GoogleCloudMessaging { } return InstanceID.getInstance(context).getStore().get("", to, INSTANCE_ID_SCOPE); } -} \ No newline at end of file +}