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

Commit 54b1a6de authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Crash when exception in event bus handler happens

Also fixes another crash when dragging in recents.

Change-Id: I24eff235adc63190369a7e054e65c55fdf594931
parent 2fbe033f
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);