mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Avoid occasional crash in app updates due to 'lost' events from previous synchronizations
This commit is contained in:
parent
7d51200291
commit
552a34689c
1 changed files with 4 additions and 2 deletions
|
@ -855,7 +855,9 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
|
|||
|
||||
Log_OC.d(TAG, "sync of account " + accountName + " is in_progress: " + inProgress);
|
||||
|
||||
if (getAccount() != null && accountName.equals(getAccount().name)) {
|
||||
if (getAccount() != null && accountName.equals(getAccount().name)
|
||||
&& mStorageManager != null
|
||||
) {
|
||||
|
||||
String synchFolderRemotePath = intent.getStringExtra(FileSyncService.SYNC_FOLDER_REMOTE_PATH);
|
||||
|
||||
|
@ -869,7 +871,7 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
|
|||
if ((synchFolderRemotePath != null && currentDir != null && (currentDir.getRemotePath().equals(synchFolderRemotePath)))
|
||||
|| fillBlankRoot ) {
|
||||
if (!fillBlankRoot)
|
||||
currentDir = getStorageManager().getFileByPath(synchFolderRemotePath);
|
||||
currentDir = mStorageManager.getFileByPath(synchFolderRemotePath);
|
||||
OCFileListFragment fileListFragment = getListOfFilesFragment();
|
||||
if (fileListFragment != null) {
|
||||
fileListFragment.listDirectory(currentDir);
|
||||
|
|
Loading…
Reference in a new issue