Initialize Task surface as invisible

While app cold launch and combine to split, sometimes race happend
and cause child task surface still hidden.
Fix this issue by initializing task as invisible so it would not
set surface as hide when first prepareSurface.

Fix: 262478804
Test: manual
Test: pass existing tests
Change-Id: Iaa93fee162fc8bc4b60aac9ff8faea6943cd01d5
diff --git a/services/core/java/com/android/server/wm/Task.java b/services/core/java/com/android/server/wm/Task.java
index ea6f244..7d59947 100644
--- a/services/core/java/com/android/server/wm/Task.java
+++ b/services/core/java/com/android/server/wm/Task.java
@@ -609,7 +609,7 @@
      */
     ActivityRecord mChildPipActivity;
 
-    boolean mLastSurfaceShowing = true;
+    boolean mLastSurfaceShowing;
 
     /**
      * Tracks if a back gesture is in progress.
@@ -4170,13 +4170,7 @@
 
     @Override
     boolean showSurfaceOnCreation() {
-        if (mCreatedByOrganizer) {
-            // Tasks created by the organizer are default visible because they can synchronously
-            // update the leash before new children are added to the task.
-            return true;
-        }
-        // Organized tasks handle their own surface visibility
-        return !canBeOrganized();
+        return false;
     }
 
     @Override