diff options
| author | 2024-07-03 04:27:38 +0000 | |
|---|---|---|
| committer | 2024-07-03 04:49:09 +0000 | |
| commit | c1f431ce04c0b1fe7b7db1d7d10edb400c6c040d (patch) | |
| tree | cf021b769de22d9f976bc9d022782a0bb8dfbcf5 | |
| parent | 6c80fde9e949e6c16203438f15b51e173a4e5b1b (diff) | |
Print transition type string when starting a new transition
- It's easier to read than the transition type value
Flag: EXEMPT bugfix
Bug: 305873102
Test: logcat | grep WindowManager
Change-Id: Icc845631c1aed2eeff0b9ac0f437c15591f6d7c1
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/transition/Transitions.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/transition/Transitions.java b/libs/WindowManager/Shell/src/com/android/wm/shell/transition/Transitions.java index ec6802da85f6..b8abf8f2a3c0 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/transition/Transitions.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/transition/Transitions.java @@ -28,6 +28,7 @@ import static android.view.WindowManager.TRANSIT_SLEEP; import static android.view.WindowManager.TRANSIT_TO_BACK; import static android.view.WindowManager.TRANSIT_TO_FRONT; import static android.view.WindowManager.fixScale; +import static android.view.WindowManager.transitTypeToString; import static android.window.TransitionInfo.FLAGS_IS_NON_APP_WINDOW; import static android.window.TransitionInfo.FLAG_BACK_GESTURE_ANIMATED; import static android.window.TransitionInfo.FLAG_IS_BEHIND_STARTING_WINDOW; @@ -1231,7 +1232,7 @@ public class Transitions implements RemoteCallable<Transitions>, public IBinder startTransition(@WindowManager.TransitionType int type, @NonNull WindowContainerTransaction wct, @Nullable TransitionHandler handler) { ProtoLog.v(ShellProtoLogGroup.WM_SHELL_TRANSITIONS, "Directly starting a new transition " - + "type=%d wct=%s handler=%s", type, wct, handler); + + "type=%s wct=%s handler=%s", transitTypeToString(type), wct, handler); final ActiveTransition active = new ActiveTransition(mOrganizer.startNewTransition(type, wct)); active.mHandler = handler; |