Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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

--HG--
branch : MOBILE170_2012111306_RELBRANCH
  • Loading branch information...
commit f17861746bdfe5f712b351fc9de0759958631d4f 1 parent c19f0d5
@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.