Clear FLAG_STARTING_WINDOW_TRANSFER_RECIPIENT properly

This CL removes FLAG_STARTING_WINDOW_TRANSFER_RECIPIENT when removing
starting window. Otherwise, it will make us to abort any transitions
that the activity is involved.

Fix: 279800916
Test: 1. Open WhatsApp.
      2. Open a conversation.
      3. See if there is an animation while opening the conversation.
Change-Id: I138af8492d1c57f9053cbb27c3c1748989353fd7
diff --git a/services/core/java/com/android/server/wm/ActivityRecord.java b/services/core/java/com/android/server/wm/ActivityRecord.java
index 26b40b4..7d0b4c4 100644
--- a/services/core/java/com/android/server/wm/ActivityRecord.java
+++ b/services/core/java/com/android/server/wm/ActivityRecord.java
@@ -2882,6 +2882,7 @@
             mStartingData = null;
             mStartingSurface = null;
             mStartingWindow = null;
+            mTransitionChangeFlags &= ~FLAG_STARTING_WINDOW_TRANSFER_RECIPIENT;
             if (surface == null) {
                 ProtoLog.v(WM_DEBUG_STARTING_WINDOW, "startingWindow was set but "
                         + "startingSurface==null, couldn't remove");