More incorrect screenshot JNI code.
Not sure why we aren't getting warnings but these casts are to the wrong
type.
Bug: 34758075
Test: Manual
Change-Id: I6b9fc0500762c34379f4de56e0b5a66e6f17d87d
diff --git a/core/jni/android_view_SurfaceControl.cpp b/core/jni/android_view_SurfaceControl.cpp
index ab3e311..7ffdbe8 100644
--- a/core/jni/android_view_SurfaceControl.cpp
+++ b/core/jni/android_view_SurfaceControl.cpp
@@ -260,7 +260,7 @@
}
ScreenshotClient::capture(displayToken,
consumer->getIGraphicBufferProducer(), sourceCrop,
- width, height, uint32_t(minLayer), uint32_t(maxLayer),
+ width, height, minLayer, maxLayer,
useIdentityTransform);
}
}