@@ -178,8 +178,10 @@ private void initData() {
178
178
179
179
@ Override
180
180
public void onClick (int position ) {
181
+ System .out .println ("<<<<<<<<<<<<<<<<position" +position );
181
182
if (cutIndex != position && maxClick +1 >= position ){
182
183
maxClick = maxClick +1 == position ? position :maxClick ;
184
+ System .out .println ("<<<<<<<<<<<<<<<<maxClick" +maxClick );
183
185
this .position = position ;
184
186
cropAndSaveImage ();
185
187
is_user_position = true ;
@@ -747,6 +749,7 @@ public void onCropFailure(@NonNull Throwable t) {
747
749
748
750
749
751
protected void setResultUri (Uri uri , float resultAspectRatio , int offsetX , int offsetY , int imageWidth , int imageHeight ) {
752
+ System .out .println ("<<<<<<<<<<<<<<<<" +maxClick );
750
753
try {
751
754
CutInfo info = cutInfos .get (cutIndex );
752
755
info .setCutPath (uri .getPath ());
@@ -757,6 +760,7 @@ protected void setResultUri(Uri uri, float resultAspectRatio, int offsetX, int o
757
760
info .setImageWidth (imageWidth );
758
761
info .setImageHeight (imageHeight );
759
762
cutIndex = is_user_position ? position : cutIndex + 1 ;
763
+ maxClick = is_user_position ? maxClick : maxClick +1 ;
760
764
maxClick = maxClick < cutIndex ? maxClick +1 :maxClick ;
761
765
if (maxClick >= cutInfos .size ()) {
762
766
setResult (RESULT_OK , new Intent ().putExtra (UCropMulti .EXTRA_OUTPUT_URI_LIST , (Serializable ) cutInfos ));
0 commit comments