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

Commit 0a624bb8 authored by nicolasroard's avatar nicolasroard
Browse files

Fix potential crash

(regression introduced with fix for 7406402)

bug:7406402
Change-Id: I7ba92b4cb4fe2976583eba54a5bd25a29eae9d5c
parent 6d867ce0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -51,6 +51,9 @@ public class ImageFilterBorder extends ImageFilter {
        if (!isBorderFilter) {
            return false;
        }
        if (!(filter instanceof ImageFilterBorder)) {
            return false;
        }
        ImageFilterBorder borderFilter = (ImageFilterBorder) filter;
        if (mNinePatch != borderFilter.mNinePatch) {
            return false;
+3 −0
Original line number Diff line number Diff line
@@ -56,6 +56,9 @@ public class ImageFilterParametricBorder extends ImageFilter {
        if (!isBorderFilter) {
            return false;
        }
        if (!(filter instanceof ImageFilterParametricBorder)) {
            return false;
        }
        ImageFilterParametricBorder borderFilter = (ImageFilterParametricBorder) filter;
        if (borderFilter.mBorderColor != mBorderColor) {
            return false;