From 875d4d8282e4857df745ab2788ca1ac4a30e9a2d Mon Sep 17 00:00:00 2001 From: Brad Lassey Date: Fri, 4 May 2012 09:19:01 -0400 Subject: [PATCH] bug 751678: Low-res screenshot happens when Fennec is in the background r=mfinkle a=blocking-fennec --- mobile/android/base/GeckoAppShell.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mobile/android/base/GeckoAppShell.java b/mobile/android/base/GeckoAppShell.java index c7c7892d3894..085087094504 100644 --- a/mobile/android/base/GeckoAppShell.java +++ b/mobile/android/base/GeckoAppShell.java @@ -2248,6 +2248,9 @@ public class GeckoAppShell } public static void screenshotWholePage(Tab tab) { + if (GeckoApp.mAppContext.isApplicationInBackground()) + return; + if (sMaxTextureSize == 0) { int[] maxTextureSize = new int[1]; GLES20.glGetIntegerv(GLES20.GL_MAX_TEXTURE_SIZE, maxTextureSize, 0);