Skip to content

Commit

Permalink
feat: add default color as black
Browse files Browse the repository at this point in the history
  • Loading branch information
jakex7 committed Oct 30, 2024
1 parent f7cef27 commit d9f3363
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/src/main/java/com/horcrux/svg/SvgView.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import android.annotation.SuppressLint;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Rect;
Expand Down Expand Up @@ -189,7 +190,7 @@ public int reactTagForTouch(float touchX, float touchY) {
final Matrix mInvViewBoxMatrix = new Matrix();
private boolean mInvertible = true;
private boolean mRendered = false;
int mCurrentColor = 0;
int mCurrentColor = Color.BLACK;

boolean notRendered() {
return !mRendered;
Expand Down

0 comments on commit d9f3363

Please sign in to comment.