mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Merge pull request #4397 from nextcloud/npeInRemove
parent file can be null
This commit is contained in:
commit
ed75cffa58
2 changed files with 3 additions and 2 deletions
|
@ -1 +1 @@
|
|||
412
|
||||
411
|
|
@ -1892,7 +1892,8 @@ public class FileDisplayActivity extends FileActivity
|
|||
setFile(getStorageManager().getFileById(removedFile.getParentId()));
|
||||
cleanSecondFragment();
|
||||
}
|
||||
if (getStorageManager().getFileById(removedFile.getParentId()).equals(getCurrentDir())) {
|
||||
OCFile parentFile = getStorageManager().getFileById(removedFile.getParentId());
|
||||
if (parentFile != null && parentFile.equals(getCurrentDir())) {
|
||||
refreshListOfFilesFragment(false);
|
||||
}
|
||||
supportInvalidateOptionsMenu();
|
||||
|
|
Loading…
Reference in a new issue