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

Commit 54fdfaa3 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android (Google) Code Review
Browse files

Merge "Crash when exception in event bus handler happens"

parents ba548812 54b1a6de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -761,7 +761,7 @@ public class EventBus extends BroadcastReceiver {
        } catch (IllegalAccessException e) {
            Log.e(TAG, "Failed to invoke method", e.getCause());
        } catch (InvocationTargetException e) {
            Log.e(TAG, "Failed to invoke method", e.getCause());
            throw new RuntimeException("Failed to invoke method", e);
        }
    }

+3 −1
Original line number Diff line number Diff line
@@ -483,8 +483,10 @@ public class RecentsView extends FrameLayout implements TaskStackView.TaskStackV
    }

    public final void onBusEvent(DraggingInRecentsEvent event) {
        if (mTaskStackView.getTaskViews().size() > 0) {
            setTranslationY(event.distanceFromTop - mTaskStackView.getTaskViews().get(0).getY());
        }
    }

    public final void onBusEvent(DraggingInRecentsEndedEvent event) {
        animate().translationY(0f);