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

Commit fd796959 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: 5cd874d7

am: 5d138b1d

Change-Id: I9bbb8bfe6989b9990b218d6afd3fcad879dc7819
parents cfecc72b 5d138b1d
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;
        }
    }