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

Commit 28a98a5a authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Implement accessibility class name for SurfaceView and TextureView

Make it easier to identify these views in HSV.

Fixes: 390185777
Change-Id: Iaf7a4d4f11f3f670a9153363bb70d7ebbaf3a344
Test: visualize accessibility node info and check class names
Flag: EXEMPT bug fix
parent 95c751ca
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2391,4 +2391,9 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
            }
        }
    }

    @Override
    public CharSequence getAccessibilityClassName() {
        return SurfaceView.class.getName();
    }
}
+5 −0
Original line number Diff line number Diff line
@@ -918,6 +918,11 @@ public class TextureView extends View {
        mLastFrameTimeMillis = now;
    }

    @Override
    public CharSequence getAccessibilityClassName() {
        return TextureView.class.getName();
    }

    @UnsupportedAppUsage
    private final SurfaceTexture.OnFrameAvailableListener mUpdateListener =
            surfaceTexture -> {