Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Bug 802510 - Reset position on the thumbnail data buffer to the begin…
Browse files Browse the repository at this point in the history
…ning before reading out of it. r=blassey a=lsblakk

--HG--
branch : MOBILE170_2012111306_RELBRANCH
  • Loading branch information
staktrace committed Nov 14, 2012
1 parent c19f0d5 commit f178617
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mobile/android/base/GeckoApp.java
Expand Up @@ -645,6 +645,7 @@ void getAndProcessThumbnailForTab(final Tab tab) {
void handleThumbnailData(Tab tab, ByteBuffer data) { void handleThumbnailData(Tab tab, ByteBuffer data) {
if (shouldUpdateThumbnail(tab)) { if (shouldUpdateThumbnail(tab)) {
Bitmap b = tab.getThumbnailBitmap(); Bitmap b = tab.getThumbnailBitmap();
data.position(0);
b.copyPixelsFromBuffer(data); b.copyPixelsFromBuffer(data);
processThumbnail(tab, b, null); processThumbnail(tab, b, null);
} }
Expand Down

0 comments on commit f178617

Please sign in to comment.