summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherAppWidgetHost.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-11-05 16:09:57 +0530
committerSunny Goyal <sunnygoyal@google.com>2015-11-05 16:10:55 +0530
commit1b323794f2f6443b9142ee613e5851a096f19fd6 (patch)
tree0626610668200dc629b71bd034c47fcc7e321f5b /src/com/android/launcher3/LauncherAppWidgetHost.java
parent04e2c9ef5663262fc9dd08ffc4b59fe305a017f3 (diff)
downloadandroid_packages_apps_Trebuchet-1b323794f2f6443b9142ee613e5851a096f19fd6.tar.gz
android_packages_apps_Trebuchet-1b323794f2f6443b9142ee613e5851a096f19fd6.tar.bz2
android_packages_apps_Trebuchet-1b323794f2f6443b9142ee613e5851a096f19fd6.zip
Ignoring DeadObjectException in startListening
> As of android M, the platform somtimes throws DeadObjectException instead of TransactionTooLargeException Bug: 25305031 Change-Id: I3a98db8a5041aef01640d16f9beb71b72bf598f1
Diffstat (limited to 'src/com/android/launcher3/LauncherAppWidgetHost.java')
-rw-r--r--src/com/android/launcher3/LauncherAppWidgetHost.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher3/LauncherAppWidgetHost.java b/src/com/android/launcher3/LauncherAppWidgetHost.java
index 28c5eacdd..b07ccc362 100644
--- a/src/com/android/launcher3/LauncherAppWidgetHost.java
+++ b/src/com/android/launcher3/LauncherAppWidgetHost.java
@@ -20,6 +20,7 @@ import android.appwidget.AppWidgetHost;
import android.appwidget.AppWidgetHostView;
import android.appwidget.AppWidgetProviderInfo;
import android.content.Context;
+import android.os.DeadObjectException;
import android.os.TransactionTooLargeException;
import android.view.LayoutInflater;
import android.view.View;
@@ -69,7 +70,8 @@ public class LauncherAppWidgetHost extends AppWidgetHost {
try {
super.startListening();
} catch (Exception e) {
- if (e.getCause() instanceof TransactionTooLargeException) {
+ if (e.getCause() instanceof TransactionTooLargeException ||
+ e.getCause() instanceof DeadObjectException) {
// We're willing to let this slide. The exception is being caused by the list of
// RemoteViews which is being passed back. The startListening relationship will
// have been established by this point, and we will end up populating the