commit | 22c4db4a6b8778ccc79ed2cd09cb69483b35fca9 | [log] [tgz] |
---|---|---|
author | Gavin Corkery <[email protected]> | Thu Jan 11 16:51:13 2024 +0000 |
committer | Gavin Corkery <[email protected]> | Thu Jan 11 16:51:13 2024 +0000 |
tree | ca9ea7e4bc6e19d2ba2e07999d104a025c063802 | |
parent | 7c31efffff3a3e26a7d7d3fe3253474447100379 [diff] |
Remove unused surfaceView from SandboxedSdkView This SurfaceView is not used, and causes crashes on older devices. Test: manual test apps on an N device Bug: 311151730 Change-Id: I02233bd328432467874763934d940d4a4c992314
diff --git a/privacysandbox/ui/ui-client/src/main/java/androidx/privacysandbox/ui/client/view/SandboxedSdkView.kt b/privacysandbox/ui/ui-client/src/main/java/androidx/privacysandbox/ui/client/view/SandboxedSdkView.kt index 2669711..83b9576 100644 --- a/privacysandbox/ui/ui-client/src/main/java/androidx/privacysandbox/ui/client/view/SandboxedSdkView.kt +++ b/privacysandbox/ui/ui-client/src/main/java/androidx/privacysandbox/ui/client/view/SandboxedSdkView.kt
@@ -104,11 +104,6 @@ class SandboxedSdkView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : ViewGroup(context, attrs) { - // TODO(b/284147223): Remove this logic in V+ - private val surfaceView = SurfaceView(context).apply { - visibility = GONE - } - // This will only be invoked when the content view has been set and the window is attached. private val surfaceChangedCallback = object : SurfaceHolder.Callback { override fun surfaceCreated(p0: SurfaceHolder) {