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

Commit aff122bf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix NPE in SplitController#startActivityToSide" into sc-v2-dev am: 0cf8c02b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16415040

Change-Id: I669e35e415ceb267bafb25617a189ddd92aaa1f3
parents 40212250 0cf8c02b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -91,13 +91,15 @@ public class SplitController implements JetpackTaskFragmentOrganizer.TaskFragmen
     */
    public void startActivityToSide(@NonNull Activity launchingActivity, @NonNull Intent intent,
            @Nullable Bundle options, @NonNull SplitRule sideRule,
            @NonNull Consumer<Exception> failureCallback) {
            @Nullable Consumer<Exception> failureCallback) {
        try {
            mPresenter.startActivityToSide(launchingActivity, intent, options, sideRule);
        } catch (Exception e) {
            if (failureCallback != null) {
                failureCallback.accept(e);
            }
        }
    }

    /**
     * Registers the split organizer callback to notify about changes to active splits.