Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bf60055 authored by Prabir Pradhan's avatar Prabir Pradhan Committed by android-build-merger
Browse files

Merge "apply empty transaction in startActivitySync" into qt-dev am: f928b661

am: d8006ca9

Change-Id: I8c48e9a82d1e286784c247f5c32dabb556374e05
parents a33d1aed d8006ca9
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ import android.view.InputDevice;
import android.view.KeyCharacterMap;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.SurfaceControl;
import android.view.ViewConfiguration;
import android.view.Window;
import android.view.WindowManagerGlobal;
@@ -528,6 +529,12 @@ public class Instrumentation {
            } while (mWaitingActivities.contains(aw));

            waitForEnterAnimationComplete(aw.activity);

            // Apply an empty transaction to ensure SF has a chance to update before
            // the Activity is ready (b/138263890).
            try (SurfaceControl.Transaction t = new SurfaceControl.Transaction()) {
                t.apply(true);
            }
            return aw.activity;
        }
    }