Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
fix twice vector dimen converting to px
Browse files Browse the repository at this point in the history
  • Loading branch information
tarek360 committed Jul 19, 2017
1 parent 276f4ad commit f4ce38d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions richpath/src/main/java/com/richpath/RichPathView.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {

if (vector == null) return;

setMeasuredDimension((int) Utils.dpToPixel(getContext(), vector.getWidth()),
(int) Utils.dpToPixel(getContext(), vector.getHeight()));
setMeasuredDimension((int) vector.getWidth(),
(int) vector.getHeight());
}

@Override
Expand Down

0 comments on commit f4ce38d

Please sign in to comment.