Loading libs/WindowManager/Shell/src/com/android/wm/shell/transition/DefaultTransitionHandler.java +0 −15 Original line number Diff line number Diff line Loading @@ -121,8 +121,6 @@ import com.android.wm.shell.shared.animation.Interpolators; import com.android.wm.shell.sysui.ShellInit; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; /** The default handler that handles anything not already handled. */ public class DefaultTransitionHandler implements Transitions.TransitionHandler { Loading Loading @@ -362,9 +360,6 @@ public class DefaultTransitionHandler implements Transitions.TransitionHandler { finishCallback.onTransitionFinished(null /* wct */); }; final List<Consumer<SurfaceControl.Transaction>> postStartTransactionCallbacks = new ArrayList<>(); @ColorInt int backgroundColorForTransition = 0; final int wallpaperTransit = getWallpaperTransitType(info); int animatingDisplayId = Integer.MIN_VALUE; Loading Loading @@ -626,16 +621,6 @@ public class DefaultTransitionHandler implements Transitions.TransitionHandler { finishTransaction); } if (postStartTransactionCallbacks.size() > 0) { // postStartTransactionCallbacks require that the start transaction is already // applied to run otherwise they may result in flickers and UI inconsistencies. startTransaction.apply(true /* sync */); // startTransaction is empty now, so fill it with the edge-extension setup for (Consumer<SurfaceControl.Transaction> postStartTransactionCallback : postStartTransactionCallbacks) { postStartTransactionCallback.accept(startTransaction); } } startTransaction.apply(); // now start animations. they are started on another thread, so we have to post them Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/transition/DefaultTransitionHandler.java +0 −15 Original line number Diff line number Diff line Loading @@ -121,8 +121,6 @@ import com.android.wm.shell.shared.animation.Interpolators; import com.android.wm.shell.sysui.ShellInit; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; /** The default handler that handles anything not already handled. */ public class DefaultTransitionHandler implements Transitions.TransitionHandler { Loading Loading @@ -362,9 +360,6 @@ public class DefaultTransitionHandler implements Transitions.TransitionHandler { finishCallback.onTransitionFinished(null /* wct */); }; final List<Consumer<SurfaceControl.Transaction>> postStartTransactionCallbacks = new ArrayList<>(); @ColorInt int backgroundColorForTransition = 0; final int wallpaperTransit = getWallpaperTransitType(info); int animatingDisplayId = Integer.MIN_VALUE; Loading Loading @@ -626,16 +621,6 @@ public class DefaultTransitionHandler implements Transitions.TransitionHandler { finishTransaction); } if (postStartTransactionCallbacks.size() > 0) { // postStartTransactionCallbacks require that the start transaction is already // applied to run otherwise they may result in flickers and UI inconsistencies. startTransaction.apply(true /* sync */); // startTransaction is empty now, so fill it with the edge-extension setup for (Consumer<SurfaceControl.Transaction> postStartTransactionCallback : postStartTransactionCallbacks) { postStartTransactionCallback.accept(startTransaction); } } startTransaction.apply(); // now start animations. they are started on another thread, so we have to post them Loading