From f64de16ce395c9e5e7b5a36b8a936e7f81b252b8 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 15 Nov 2012 07:03:32 -0800 Subject: [PATCH] catch and discard all exceptions that come when initing GCM. Fringe devices may do anthing at that point. --- .../XWords4/src/org/eehouse/android/xw4/GCMIntentService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GCMIntentService.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GCMIntentService.java index 8a37f9698..9b3a80e9e 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GCMIntentService.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GCMIntentService.java @@ -84,6 +84,9 @@ public class GCMIntentService extends GCMBaseIntentService { } } catch ( UnsupportedOperationException uoe ) { DbgUtils.logf( "Device can't do GCM." ); + } catch ( Exception whatever ) { + // funky devices could do anything + DbgUtils.loge( whatever ); } } }