test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/HttpServer.java in calabash-android-0.3.0.pre10 vs test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/HttpServer.java in calabash-android-0.3.0

- old
+ new

@@ -84,9 +84,10 @@ } else if (uri.endsWith("/screenshot")) { Bitmap bitmap; View rootView = getRootView(); rootView.setDrawingCacheEnabled(true); + rootView.buildDrawingCache(true); bitmap = Bitmap.createBitmap(rootView.getDrawingCache()); rootView.setDrawingCacheEnabled(false); ByteArrayOutputStream out = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.PNG, 90, out);