am 82018f99: Forgot to reset the matrix of offscreen canvas

* commit '82018f99727a104aa77ab4d48f8b9a9858479453':
  Forgot to reset the matrix of offscreen canvas
This commit is contained in:
Ken Wakasa 2013-08-02 02:58:48 -07:00 committed by Android Git Automerger
commit eba1ad955e

View file

@ -110,6 +110,7 @@ public final class GestureTrailsPreview extends AbstractDrawingPreview {
private void freeOffscreenBuffer() {
mOffscreenCanvas.setBitmap(null);
mOffscreenCanvas.setMatrix(null);
if (mOffscreenBuffer != null) {
mOffscreenBuffer.recycle();
mOffscreenBuffer = null;