Loading core/java/com/android/internal/util/ScreenshotHelper.java +3 −2 Original line number Diff line number Diff line Loading @@ -219,8 +219,9 @@ public class ScreenshotHelper { throw new IllegalArgumentException("Bundle does not contain a hardware bitmap"); } HardwareBuffer buffer = bundle.getParcelable(KEY_BUFFER); ParcelableColorSpace colorSpace = bundle.getParcelable(KEY_COLOR_SPACE); HardwareBuffer buffer = bundle.getParcelable(KEY_BUFFER, HardwareBuffer.class); ParcelableColorSpace colorSpace = bundle.getParcelable(KEY_COLOR_SPACE, ParcelableColorSpace.class); return Bitmap.wrapHardwareBuffer(Objects.requireNonNull(buffer), colorSpace.getColorSpace()); Loading Loading
core/java/com/android/internal/util/ScreenshotHelper.java +3 −2 Original line number Diff line number Diff line Loading @@ -219,8 +219,9 @@ public class ScreenshotHelper { throw new IllegalArgumentException("Bundle does not contain a hardware bitmap"); } HardwareBuffer buffer = bundle.getParcelable(KEY_BUFFER); ParcelableColorSpace colorSpace = bundle.getParcelable(KEY_COLOR_SPACE); HardwareBuffer buffer = bundle.getParcelable(KEY_BUFFER, HardwareBuffer.class); ParcelableColorSpace colorSpace = bundle.getParcelable(KEY_COLOR_SPACE, ParcelableColorSpace.class); return Bitmap.wrapHardwareBuffer(Objects.requireNonNull(buffer), colorSpace.getColorSpace()); Loading