Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3c65775 authored by Sunny Goyal's avatar Sunny Goyal Committed by Android Git Automerger
Browse files

am 79afe010: Throwing system api call exceptions in case of dogfood builds

* commit '79afe010':
  Throwing system api call exceptions in case of dogfood builds
parents 1cdb6d06 79afe010
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -3307,6 +3307,9 @@ public class LauncherModel extends BroadcastReceiver
                                    new Intent(AppWidgetManager.ACTION_APPWIDGET_UPDATE)
                                            .setPackage(pkg), 0).isEmpty();
                        } catch (RuntimeException e) {
                            if (LauncherAppState.isDogfoodBuild()) {
                                throw e;
                            }
                            // Ignore the crash. We can live with a state widget list.
                            Log.e(TAG, "PM call failed for " + pkg, e);
                        }
@@ -3361,8 +3364,9 @@ public class LauncherModel extends BroadcastReceiver
                return results;
            }
        } catch (Exception e) {
            if (e.getCause() instanceof TransactionTooLargeException ||
                    e.getCause() instanceof DeadObjectException) {
            if (!LauncherAppState.isDogfoodBuild() &&
                    (e.getCause() instanceof TransactionTooLargeException ||
                    e.getCause() instanceof DeadObjectException)) {
                // the returned value may be incomplete and will not be refreshed until the next
                // time Launcher starts.
                // TODO: after figuring out a repro step, introduce a dirty bit to check when