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

Commit 9c1649ab authored by Ameer Armaly's avatar Ameer Armaly
Browse files

Expose SurfacePackage#getSurfaceControl

Bug: 238840614
Test: atest AccessibilityOverlayTest
Change-Id: Ibcee5d9aa39af981d8e1dccc59d5c078d51a454e
parent 95053306
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -49948,6 +49948,7 @@ package android.view {
  public static final class SurfaceControlViewHost.SurfacePackage implements android.os.Parcelable {
    ctor public SurfaceControlViewHost.SurfacePackage(@NonNull android.view.SurfaceControlViewHost.SurfacePackage);
    method public int describeContents();
    method @NonNull public android.view.SurfaceControl getSurfaceControl();
    method public void notifyConfigurationChanged(@NonNull android.content.res.Configuration);
    method public void notifyDetachedFromWindow();
    method public void release();
+5 −3
Original line number Diff line number Diff line
@@ -159,9 +159,11 @@ public class SurfaceControlViewHost {
        }

        /**
         * Use {@link SurfaceView#setChildSurfacePackage} or manually fix
         * accessibility (see SurfaceView implementation).
         * @hide
         * Returns the {@link android.view.SurfaceControl} associated with this SurfacePackage for
         * cases where more control is required.
         *
         * @return the SurfaceControl associated with this SurfacePackage and its containing
         *     SurfaceControlViewHost
         */
        public @NonNull SurfaceControl getSurfaceControl() {
            return mSurfaceControl;