Revert "Prevent dismissing starting window when reopening app"

This reverts commit 7c88cf83035e331bb4c4ccb519c8200f2e9d083f.
Original bug: b/134561008

Reason for revert: b/135084202

Change-Id: Ib4c17f98d66c9efb10d800d9ba585d14be4ac878
(cherry picked from commit 6e814f9f3356cd56623c47ec50e2a84ec6bc10be)
diff --git a/services/core/java/com/android/server/wm/AppWindowToken.java b/services/core/java/com/android/server/wm/AppWindowToken.java
index 60cfe14..4a9a3f7 100644
--- a/services/core/java/com/android/server/wm/AppWindowToken.java
+++ b/services/core/java/com/android/server/wm/AppWindowToken.java
@@ -540,14 +540,6 @@
                 // If the app was already visible, don't reset the waitingToShow state.
                 if (isHidden()) {
                     waitingToShow = true;
-
-                    // Let's reset the draw state in order to prevent the starting window to be
-                    // immediately dismissed when the app still has the surface.
-                    forAllWindows(w -> {
-                            if (w.mAttrs.type != TYPE_APPLICATION_STARTING) {
-                                w.mWinAnimator.resetDrawState();
-                            }
-                        },  true /* traverseTopToBottom */);
                 }
             }