Skip to content

Commit

Permalink
fix(android): Image onPress #1170
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Oct 25, 2019
1 parent 021b1a8 commit 5c967b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions android/src/main/java/com/horcrux/svg/ImageView.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ void draw(final Canvas canvas, final Paint paint, final float opacity) {

@Override
Path getPath(Canvas canvas, Paint paint) {
Path path = new Path();
path.addRect(getRect(), Path.Direction.CW);
return path;
mPath = new Path();
mPath.addRect(getRect(), Path.Direction.CW);
return mPath;
}

private void loadBitmap(final ImagePipeline imagePipeline, final ImageRequest request) {
Expand Down

0 comments on commit 5c967b7

Please sign in to comment.