mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 02:17:43 +03:00
Fix: App crashes when renaming or deleting a video and rotate
This commit is contained in:
parent
f359d11a4d
commit
3fb28ceae4
1 changed files with 13 additions and 3 deletions
|
@ -1357,9 +1357,19 @@ OnSslUntrustedCertListener, EditNameDialogListener {
|
|||
OCFile renamedFile = operation.getFile();
|
||||
if (result.isSuccess()) {
|
||||
FileFragment details = getSecondFragment();
|
||||
if (details != null && details instanceof FileDetailFragment && renamedFile.equals(details.getFile()) ) {
|
||||
((FileDetailFragment) details).updateFileDetails(renamedFile, getAccount());
|
||||
showDetails(renamedFile);
|
||||
if (details != null)
|
||||
if (details instanceof FileDetailFragment && renamedFile.equals(details.getFile()) ) {
|
||||
((FileDetailFragment) details).updateFileDetails(renamedFile, getAccount());
|
||||
showDetails(renamedFile);
|
||||
|
||||
} else if (details instanceof PreviewMediaFragment && renamedFile.equals(details.getFile())) {
|
||||
((PreviewMediaFragment) details).updateFile(renamedFile);
|
||||
if (PreviewMediaFragment.canBePreviewed(renamedFile)) {
|
||||
int position = ((PreviewMediaFragment)details).getPosition();
|
||||
startMediaPreview(renamedFile, position, true);
|
||||
} else {
|
||||
getFileOperationsHelper().openFile(renamedFile);
|
||||
}
|
||||
}
|
||||
|
||||
if (getStorageManager().getFileById(renamedFile.getParentId()).equals(getCurrentDir())) {
|
||||
|
|
Loading…
Reference in a new issue