Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84fce187 authored by Romain Guy's avatar Romain Guy
Browse files

Don't crash on Canvas.drawPicture()

Implementation yet to come but prevent app crashes.

Change-Id: I81d6851ebf776a98e13c606bab272a03aec406ee
parent 671d6cf4
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -908,17 +908,17 @@ class GLES20Canvas extends HardwareCanvas {

    @Override
    public void drawPicture(Picture picture) {
        throw new UnsupportedOperationException();
        // TODO: Implement
    }

    @Override
    public void drawPicture(Picture picture, Rect dst) {
        throw new UnsupportedOperationException();
        // TODO: Implement
    }

    @Override
    public void drawPicture(Picture picture, RectF dst) {
        throw new UnsupportedOperationException();
        // TODO: Implement
    }

    @Override
+5 −1
Original line number Diff line number Diff line
@@ -123,7 +123,11 @@ public class Picture {
    }

    protected void finalize() throws Throwable {
        try {
            nativeDestructor(mNativePicture);
        } finally {
            super.finalize();
        }
    }
    
    /*package*/ final int ni() {