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

Commit 479f788a authored by Gil Dobjanschi's avatar Gil Dobjanschi Committed by Android (Google) Code Review
Browse files

Merge "Transition bug fix"

parents 3f87246d 36b7cc5e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1155,12 +1155,14 @@ public class VideoEditorTestImpl implements VideoEditor {
    private void removeAdjacentTransitions(MediaItem mediaItem) {
        final Transition beginTransition = mediaItem.getBeginTransition();
        if (beginTransition != null) {
            beginTransition.getAfterMediaItem().setEndTransition(null);
            beginTransition.invalidate();
            mTransitions.remove(beginTransition);
        }

        final Transition endTransition = mediaItem.getEndTransition();
        if (endTransition != null) {
            endTransition.getBeforeMediaItem().setBeginTransition(null);
            endTransition.invalidate();
            mTransitions.remove(endTransition);
        }