tarek360 / RichPath

💪 Rich Android Path. 🤡 Draw as you want. 🎉 Animate much as you can.

Home Page:https://twitter.com/a_tarek360

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FIXED] if the vector not exist in first time but after some seconds the app will crash.

AmineLAHRIM opened this issue · comments

i test the RIchPathView inside the ZoomLayout
please modify the code in RichPathView:

@OverRide
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {

    //if (vector == null) return;

    int desiredWidth = (int) (vector == null ? 0 : vector.getWidth());
    int desiredHeight = (int) (vector == null ? 0 : vector.getHeight());