Skip to content

Commit 51bfa6d

Browse files
committed
'合并代码'
1 parent 47c4404 commit 51bfa6d

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

.idea/caches/build_file_checksums.ser

0 Bytes
Binary file not shown.

.idea/caches/gradle_models.ser

205 Bytes
Binary file not shown.

config.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ext {
99
ucropVersionCode : 22,
1010
ucropVersionName : "2.2.0-native",
1111

12-
//open version control
12+
//open version controlandroidSupportVersion
1313
androidSupportVersion: "27.1.1",
1414
glide : "4.5.0",
1515
rxjava : "2.0.5",

ucrop/src/main/java/com/yalantis/ucrop/PictureMultiCuttingActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,10 @@ private void initData() {
178178

179179
@Override
180180
public void onClick(int position) {
181+
System.out.println("<<<<<<<<<<<<<<<<position"+position);
181182
if(cutIndex != position && maxClick+1 >= position ){
182183
maxClick = maxClick+1 == position ? position:maxClick;
184+
System.out.println("<<<<<<<<<<<<<<<<maxClick"+maxClick);
183185
this.position = position;
184186
cropAndSaveImage();
185187
is_user_position = true;
@@ -747,6 +749,7 @@ public void onCropFailure(@NonNull Throwable t) {
747749

748750

749751
protected void setResultUri(Uri uri, float resultAspectRatio, int offsetX, int offsetY, int imageWidth, int imageHeight) {
752+
System.out.println("<<<<<<<<<<<<<<<<"+maxClick);
750753
try {
751754
CutInfo info = cutInfos.get(cutIndex);
752755
info.setCutPath(uri.getPath());
@@ -757,6 +760,7 @@ protected void setResultUri(Uri uri, float resultAspectRatio, int offsetX, int o
757760
info.setImageWidth(imageWidth);
758761
info.setImageHeight(imageHeight);
759762
cutIndex = is_user_position ? position: cutIndex + 1;
763+
maxClick = is_user_position ? maxClick: maxClick+1;
760764
maxClick = maxClick < cutIndex ? maxClick+1:maxClick;
761765
if (maxClick >= cutInfos.size()) {
762766
setResult(RESULT_OK, new Intent().putExtra(UCropMulti.EXTRA_OUTPUT_URI_LIST, (Serializable) cutInfos));

0 commit comments

Comments
 (0)