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

Commit 0b645386 authored by Evan Rosky's avatar Evan Rosky
Browse files

Always show CHANGE containers in transition setup

This shouldn't be necessary, but it acts as a failsafe in case
a previous transition messes-up visibility in its finishTransaction.

Bug: 280737703
Test: launch app, swipe-to-home, relaunch the app before home animation
      finishes.
Change-Id: Ic7a81e313b35310061c9278ea72c98cc0bf20ef7
parent d86a3857
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -493,6 +493,9 @@ public final class TransitionInfo implements Parcelable {
        if ((flags & FLAG_FIRST_CUSTOM) != 0) {
            sb.append(sb.length() == 0 ? "" : "|").append("FIRST_CUSTOM");
        }
        if ((flags & FLAG_MOVED_TO_TOP) != 0) {
            sb.append(sb.length() == 0 ? "" : "|").append("MOVE_TO_TOP");
        }
        return sb.toString();
    }

+4 −0
Original line number Diff line number Diff line
@@ -492,6 +492,10 @@ public class Transitions implements RemoteCallable<Transitions>,
                finishT.show(leash);
            } else if (mode == TRANSIT_CLOSE || mode == TRANSIT_TO_BACK) {
                finishT.hide(leash);
            } else if (isOpening && mode == TRANSIT_CHANGE) {
                // Just in case there is a race with another animation (eg. recents finish()).
                // Changes are visible->visible so it's a problem if it isn't visible.
                t.show(leash);
            }
        }
    }