From a5355ae3bd91164f02a5cbcb6394088a4be06d5f Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Wed, 14 Nov 2012 00:34:25 -0800 Subject: [PATCH] Bug 802510 - Reset position on the thumbnail data buffer to the beginning before reading out of it. r=blassey a=lsblakk --- mobile/android/base/GeckoApp.java | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/android/base/GeckoApp.java b/mobile/android/base/GeckoApp.java index 5ff6931c028c..d2a1f9e41e60 100644 --- a/mobile/android/base/GeckoApp.java +++ b/mobile/android/base/GeckoApp.java @@ -731,6 +731,7 @@ abstract public class GeckoApp void handleThumbnailData(Tab tab, ByteBuffer data) { if (shouldUpdateThumbnail(tab)) { Bitmap b = tab.getThumbnailBitmap(); + data.position(0); b.copyPixelsFromBuffer(data); processThumbnail(tab, b, null); }