private void recapture(int top, int bottom) { if (!cannotRecapture()) { int width = this.parent.getWidth(); int height = bottom - top; if (height <= 0) { height = this.parent.getHeight(); } CrDb.logTime("screen capture", "recaptured ", true); this.bitmap = Bitmap.createBitmap(width, height, Config.ARGB_8888); CrDb.m0d( "screen capture", "bitmap initialize " + width + MinimalPrettyPrinter.DEFAULT_ROOT_VALUE_SEPARATOR + height); this.canvas = new Canvas(this.bitmap); CrDb.logTime("screen capture", "recaptured ", false); } }