Skip to content

Commit ac805fd

Browse files
committed
2022/01/30
bug fixed
1 parent 332bf91 commit ac805fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SmartFileBrowser/src/main/java/ir/smartdevelopers/smartfilebrowser/acitivties/FileBrowserMainActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,6 +1445,10 @@ public int getGalleryItemSelectionCount() {
14451445
public void imageUpdated(String newFilePath, int editedImagePosition) {
14461446
if (mGalleryAdapter != null) {
14471447
mGalleryAdapter.getItem(editedImagePosition).setPath(newFilePath);
1448+
mGalleryAdapter.getItem(editedImagePosition)
1449+
.setUri(FileProvider.getUriForFile(getApplicationContext(),
1450+
getPackageName()+".sfb_provider",new File(newFilePath)));
1451+
14481452
if (Build.VERSION.SDK_INT < 21) {
14491453
mGalleryAdapter.notifyItemChanged(editedImagePosition);
14501454
}

0 commit comments

Comments
 (0)