diff options
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/browser/Tab.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java index 39bf49c..ead1576 100644 --- a/src/com/android/browser/Tab.java +++ b/src/com/android/browser/Tab.java @@ -2086,11 +2086,14 @@ class Tab implements PictureListener { return; } ByteBuffer buffer = ByteBuffer.wrap(blob); - if (buffer.capacity() != blob.length) { - Log.e(LOGTAG, "Load capture has mismatched sizes: " - + buffer.capacity() + " vs " + blob.length); + try { + mCapture.copyPixelsFromBuffer(buffer); + } catch (RuntimeException rex) { + Log.e(LOGTAG, "Load capture has mismatched sizes; buffer: " + + buffer.capacity() + " blob: " + blob.length + + "capture: " + mCapture.getByteCount()); + throw rex; } - mCapture.copyPixelsFromBuffer(buffer); } } |