Skip to content

Commit 80ebfb3

Browse files
committed
<fix> : 修复删除文件夹后无法使用压缩问题
1 parent c757828 commit 80ebfb3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

library/src/main/java/com/rain/library/PhotoPick.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static void startCompression(Context context, ArrayList<MediaData> mediaD
6565
paths.add(data.getOriginalPath());
6666
}
6767
}
68-
68+
ExternalStorage.getInstance().checkStorageValid();
6969
Luban.with(context)
7070
.load(paths)
7171
.setTargetDir(PhotoPickOptions.DEFAULT.imagePath)

library/src/main/java/com/rain/library/ui/PhotoPickActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ public boolean onCreateOptionsMenu(Menu menu) {
235235
public boolean onOptionsItemSelected(MenuItem item) {
236236
if (PhotoPick.isTimeEnabled()) {
237237
if (item.getItemId() == R.id.ok) {
238+
index = 0;
238239
checkImages();
239240
if (adapter != null && !adapter.getSelectPhotosInfo().isEmpty()) {
240241
MediaData mediaData = adapter.getSelectPhotosInfo().get(0);

0 commit comments

Comments
 (0)