mirror of
https://github.com/androidx/media.git
synced 2025-05-11 09:39:52 +08:00

Previously we assumed that `surfaceSyncGroupV34` was always non-null on API 34, but this isn't true in edit mode. Instead we add an explicit null-check before accessing it. We don't need to null-check it at the other usage site because we are already null-checking `surfaceView` (via `instanceof` check). Issue: androidx/media#1237 #cherrypick PiperOrigin-RevId: 645008049 (cherry picked from commit 99803066ea6d375f5527e0953aad4ecd91fbac3c)