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

--HG--
branch : MOBILE170_2012111306_RELBRANCH
  • Loading branch information...
1 parent c19f0d5 commit f17861746bdfe5f712b351fc9de0759958631d4f @staktrace staktrace committed Nov 14, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 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 f178617

Please sign in to comment.