diff --git a/android/src/main/java/com/rssignaturecapture/RSSignatureCaptureMainView.java b/android/src/main/java/com/rssignaturecapture/RSSignatureCaptureMainView.java index a8d77303..b3186432 100644 --- a/android/src/main/java/com/rssignaturecapture/RSSignatureCaptureMainView.java +++ b/android/src/main/java/com/rssignaturecapture/RSSignatureCaptureMainView.java @@ -58,6 +58,10 @@ public RSSignatureCaptureMainView(Context context, Activity activity) { ViewGroup.LayoutParams.MATCH_PARENT)); } + public RSSignatureCaptureView getSignatureView() { + return signatureView; + } + public void setSaveFileInExtStorage(Boolean saveFileInExtStorage) { this.saveFileInExtStorage = saveFileInExtStorage; } diff --git a/android/src/main/java/com/rssignaturecapture/RSSignatureCaptureViewManager.java b/android/src/main/java/com/rssignaturecapture/RSSignatureCaptureViewManager.java index eb8ca42f..868fc4e6 100644 --- a/android/src/main/java/com/rssignaturecapture/RSSignatureCaptureViewManager.java +++ b/android/src/main/java/com/rssignaturecapture/RSSignatureCaptureViewManager.java @@ -76,7 +76,7 @@ public void setPropsWidth(RSSignatureCaptureMainView view, @Nullable Integer max public void setPropsMinStrokeWidth(RSSignatureCaptureMainView view, @Nullable int minStrokeWidth) { Log.d("minStrokeWidth:", ""+minStrokeWidth); if(view!=null){ - view.setMinStrokeWidth(minStrokeWidth); + view.getSignatureView().setMinStrokeWidth(minStrokeWidth); } } @@ -84,7 +84,7 @@ public void setPropsMinStrokeWidth(RSSignatureCaptureMainView view, @Nullable in public void setPropsMaxStrokeWidth(RSSignatureCaptureMainView view, @Nullable int maxStrokeWidth) { Log.d("maxStrokeWidth:", ""+maxStrokeWidth); if(view!=null){ - view.setMaxStrokeWidth(maxStrokeWidth); + view.getSignatureView().setMaxStrokeWidth(maxStrokeWidth); } }