Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug 802510 - Reset position on the thumbnail data buffer to the begin…

…ning before reading out of it. r=blassey a=lsblakk
  • Loading branch information...
commit 8913f79d4b48e568dca5a75d5d82fc2f6351314d 1 parent c299617
@staktrace staktrace authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  mobile/android/base/GeckoApp.java
View
1  mobile/android/base/GeckoApp.java
@@ -645,6 +645,7 @@ void getAndProcessThumbnailForTab(final Tab tab) {
void handleThumbnailData(Tab tab, ByteBuffer data) {
if (shouldUpdateThumbnail(tab)) {
Bitmap b = tab.getThumbnailBitmap();
+ data.position(0);
b.copyPixelsFromBuffer(data);
processThumbnail(tab, b, null);
}
Please sign in to comment.
Something went wrong with that request. Please try again.