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

Commit d847f1a1 authored by George Mount's avatar George Mount Committed by Android (Google) Code Review
Browse files

Merge "Additional fixes for "back" with translucent windows." into lmp-dev

parents aa924b52 99c82fd1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -151,6 +151,7 @@ class ActivityTransitionState {
            mEnterActivityOptions = options;
            mIsEnterTriggered = false;
            if (mEnterActivityOptions.isReturning()) {
                restoreExitedViews();
                int result = mEnterActivityOptions.getResultCode();
                if (result != 0) {
                    activity.onActivityReenter(result, mEnterActivityOptions.getResultData());
+1 −0
Original line number Diff line number Diff line
@@ -466,6 +466,7 @@ class EnterTransitionCoordinator extends ActivityTransitionCoordinator {
            Drawable background = getDecor().getBackground();
            if (background != null) {
                background = background.mutate();
                getWindow().setBackgroundDrawable(background);
                mBackgroundAnimator = ObjectAnimator.ofInt(background, "alpha", 255);
                mBackgroundAnimator.setDuration(getFadeDuration());
                mBackgroundAnimator.addListener(new AnimatorListenerAdapter() {
+2 −0
Original line number Diff line number Diff line
@@ -260,6 +260,8 @@ class ExitTransitionCoordinator extends ActivityTransitionCoordinator {
            ViewGroup decor = getDecor();
            Drawable background;
            if (decor != null && (background = decor.getBackground()) != null) {
                background = background.mutate();
                getWindow().setBackgroundDrawable(background);
                mBackgroundAnimator = ObjectAnimator.ofInt(background, "alpha", 0);
                mBackgroundAnimator.addListener(new AnimatorListenerAdapter() {
                    @Override