Skip to content

Commit

Permalink
Revert "CompositionLayer: Handle invalid Region.Op on Android Pie" (#920
Browse files Browse the repository at this point in the history
)

@bmc08gt

Reverts #919
  • Loading branch information
gpeal authored Sep 4, 2018
1 parent 817e100 commit 3f58e58
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.RectF;
import android.os.Build;
import android.support.annotation.FloatRange;
import android.support.annotation.Nullable;
import android.support.v4.util.LongSparseArray;
Expand Down Expand Up @@ -94,11 +93,7 @@ public CompositionLayer(LottieDrawable lottieDrawable, Layer layerModel, List<La
for (int i = layers.size() - 1; i >= 0 ; i--) {
boolean nonEmptyClip = true;
if (!newClipRect.isEmpty()) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
nonEmptyClip = canvas.clipOutRect(newClipRect);
} else {
nonEmptyClip = canvas.clipRect(newClipRect);
}
nonEmptyClip = canvas.clipRect(newClipRect);
}
if (nonEmptyClip) {
BaseLayer layer = layers.get(i);
Expand Down

0 comments on commit 3f58e58

Please sign in to comment.