diff --git a/native/android/surface_control.cpp b/native/android/surface_control.cpp index 3156732ef02b1..416ef42d21a73 100644 --- a/native/android/surface_control.cpp +++ b/native/android/surface_control.cpp @@ -499,7 +499,5 @@ void ASurfaceTransaction_setColor(ASurfaceTransaction* aSurfaceTransaction, color.g = g; color.b = b; - transaction->setColor(surfaceControl, color) - .setColorAlpha(surfaceControl, alpha) - .setColorDataspace(surfaceControl, static_cast(dataspace)); + transaction->setBackgroundColor(surfaceControl, color, alpha, static_cast(dataspace)); }