* commit '450b713e83e2e45e43df06649e377c50e33922d4': Adjust buffer position after copying
This commit is contained in:
@@ -413,6 +413,11 @@ public final class Bitmap implements Parcelable {
|
||||
}
|
||||
|
||||
nativeCopyPixelsFromBuffer(mNativeBitmap, src);
|
||||
|
||||
// now update the buffer's position
|
||||
int position = src.position();
|
||||
position += bitmapBytes >> shift;
|
||||
src.position(position);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user