diff --git a/android/manifest b/android/manifest index 50f0f88..817a8c5 100644 --- a/android/manifest +++ b/android/manifest @@ -2,7 +2,7 @@ # this is your module manifest and used by Titanium # during compilation, packaging, distribution, etc. # -version: 5.0.0 +version: 5.0.1 apiversion: 4 architectures: arm64-v8a armeabi-v7a x86 x86_64 description: Provides a paint surface user interface view. diff --git a/android/src/ti/modules/titanium/paint/UIPaintView.java b/android/src/ti/modules/titanium/paint/UIPaintView.java index 13455d6..e904e83 100644 --- a/android/src/ti/modules/titanium/paint/UIPaintView.java +++ b/android/src/ti/modules/titanium/paint/UIPaintView.java @@ -29,7 +29,7 @@ public class UIPaintView extends TiUIView { public PaintView tiPaintView; private KrollDict props; private Boolean eraseState = false; - private int currentColor = -1; + private int currentColor = -999999999; private int alphaState = -1; private Float oldWidth = -1.0f; @@ -47,7 +47,7 @@ public UIPaintView(TiViewProxy proxy) { } private void setPaintOptions() { - if (currentColor == -1) { + if (currentColor == -999999999) { currentColor = (props.containsKeyAndNotNull("strokeColor")) ? TiConvert.toColor(props, "strokeColor") : TiConvert.toColor("black"); } @@ -83,7 +83,7 @@ public void setEraseMode(Boolean toggle) { eraseState = toggle; if (eraseState) { tiPaint.setColor(TiConvert.toColor("black")); - tiPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); + tiPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); } else { tiPaint.setXfermode(null); }