File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
imageeditlibrary/src/main/java/com/xinlan/imageeditlibrary/editimage/fragment Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 44import android .view .LayoutInflater ;
55import android .view .View ;
66import android .view .ViewGroup ;
7+
78import com .xinlan .imageeditlibrary .R ;
89import com .xinlan .imageeditlibrary .editimage .ModuleConfig ;
910
@@ -121,8 +122,11 @@ private void onFilterClick() {
121122 * @author panyi
122123 */
123124 private void onCropClick () {
124- activity .bottomGallery .setCurrentItem (CropFragment .INDEX );
125- activity .mCropFragment .onShow ();
125+ //如果图片非常小,还去裁剪,没有裁剪效果,还会造成crush。在此限制图片如果太小,裁剪就不去响应。
126+ if (activity .getMainBit ().getHeight () > 10 && activity .getMainBit ().getWidth () > 10 ) {
127+ activity .bottomGallery .setCurrentItem (CropFragment .INDEX );
128+ activity .mCropFragment .onShow ();
129+ }
126130 }
127131
128132 /**
You can’t perform that action at this time.
0 commit comments