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

Commit 6f8c54d2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Gallery2: Fix NaN comparisons"

parents 6924e012 80678e64
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ public class FilterVignetteRepresentation extends FilterRepresentation implement
    }

    public boolean isCenterSet() {
        return mCenterX != Float.NaN;
        return !Float.isNaN(mCenterX);
    }

    @Override
+3 −3
Original line number Diff line number Diff line
@@ -189,7 +189,7 @@ public class EclipseControl {
    }

    public void paintGrayPoint(Canvas canvas, float x, float y) {
        if (x == Float.NaN) {
        if (Float.isNaN(x)) {
            return;
        }

@@ -206,7 +206,7 @@ public class EclipseControl {
    }

    public void paintPoint(Canvas canvas, float x, float y) {
        if (x == Float.NaN) {
        if (Float.isNaN(x)) {
            return;
        }

@@ -223,7 +223,7 @@ public class EclipseControl {
    }

    void paintRadius(Canvas canvas, float cx, float cy, float rx, float ry) {
        if (cx == Float.NaN) {
        if (Float.isNaN(cx)) {
            return;
        }
        int mSliderColor = 0xFF33B5E5;