Permalink
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...
1 parent c299617 commit 8913f79d4b48e568dca5a75d5d82fc2f6351314d @staktrace staktrace committed Nov 14, 2012
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);
}

0 comments on commit 8913f79

Please sign in to comment.