Correct the logic of identifying Home

Correct the logic of identifying Home.

Bug: 269368924
Test: Manual operate the steps of issue and the behavior is expected.
Change-Id: I37a170569a7c36e4047a6a347243e6282498e5ac
This commit is contained in:
Chilun Huang
2023-02-16 19:06:27 +08:00
parent 32a041826d
commit 8142134455

View File

@@ -144,7 +144,7 @@ public class DefaultMixedHandler implements Transitions.TransitionHandler {
private boolean isHomeOpening(@NonNull TransitionInfo.Change change) {
return change.getTaskInfo() != null
&& change.getTaskInfo().getActivityType() != ACTIVITY_TYPE_HOME;
&& change.getTaskInfo().getActivityType() == ACTIVITY_TYPE_HOME;
}
private boolean isWallpaper(@NonNull TransitionInfo.Change change) {