Skip to content

Commit

Permalink
Fix bug when changing line color (see #448) (#15)
Browse files Browse the repository at this point in the history
* Fix bug when changing line color (see #448)

* Use Color.parseColor in LineController.setLineColor

Co-authored-by: Vincent Berthet <vincent@web-74.com>
  • Loading branch information
vberthet and Vincent Berthet authored Oct 14, 2021
1 parent 48c35b5 commit 3b68061
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.util.ArrayList;
import java.util.List;

import android.graphics.Color;
import android.graphics.PointF;
import android.util.Log;

Expand Down Expand Up @@ -59,7 +60,7 @@ public void setLineOpacity(float lineOpacity) {

@Override
public void setLineColor(String lineColor) {
line.setLineColor(ColorUtils.rgbaToColor(lineColor));
line.setLineColor(Color.parseColor(lineColor));
}

@Override
Expand Down

0 comments on commit 3b68061

Please sign in to comment.