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

Commit b511d54b authored by Kurt Melby's avatar Kurt Melby Committed by Android (Google) Code Review
Browse files

Merge "Deprecate `ComputerControlSession.getAccessibilityWindows()`." into main

parents 46332654 09e71fa2
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ import com.android.extensions.computercontrol.input.KeyEvent;
import com.android.extensions.computercontrol.input.TouchEvent;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.Executor;
@@ -229,10 +230,14 @@ public final class ComputerControlSession implements AutoCloseable {

    /**
     * Returns all windows on the display associated with the {@link ComputerControlSession}.
     *
     * @deprecated This method is no longer in use and will be removed in a future release.
     */
    // TODO: b/437852886 - Remove this method when moving to v1 of the API.
    @Deprecated
    @NonNull
    public List<AccessibilityWindowInfo> getAccessibilityWindows() {
        return mAccessibilityProxy.getWindows();
        return Collections.emptyList();
    }

    /**