diff --git a/simplecropview-sample/src/main/java/com/example/simplecropviewsample/MainFragment.java b/simplecropview-sample/src/main/java/com/example/simplecropviewsample/MainFragment.java index f441d05..9425643 100644 --- a/simplecropview-sample/src/main/java/com/example/simplecropviewsample/MainFragment.java +++ b/simplecropview-sample/src/main/java/com/example/simplecropviewsample/MainFragment.java @@ -55,9 +55,10 @@ public void onViewCreated(View view, Bundle savedInstanceState) { bindViews(view); // apply custom font FontUtils.setFont(mRootLayout); + +// mCropView.setDebug(true); // set bitmap to CropImageView if (mCropView.getImageBitmap() == null) { - mCropView.setDebug(true); mCropView.setImageResource(R.drawable.sample5); } } diff --git a/simplecropview/src/main/java/com/isseiaoki/simplecropview/CropImageView.java b/simplecropview/src/main/java/com/isseiaoki/simplecropview/CropImageView.java index 6be6106..0582a4f 100644 --- a/simplecropview/src/main/java/com/isseiaoki/simplecropview/CropImageView.java +++ b/simplecropview/src/main/java/com/isseiaoki/simplecropview/CropImageView.java @@ -1917,6 +1917,7 @@ public void setInterpolator(Interpolator interpolator) { */ public void setDebug(boolean debug) { mIsDebug = debug; + invalidate(); } /**