mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
FileDisplayActivity: wait until OCFileListFragment is initialized to trigger browseToRoot()
This solves a bug which caused a "Directory does not exist" popup when coming back from Gallery, as it tried to call browseToRoot on GalleryFragment due it being executed before the fragment transaction. Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
2bb8c91965
commit
9a2cbcbba4
1 changed files with 1 additions and 0 deletions
|
@ -513,6 +513,7 @@ public class FileDisplayActivity extends FileActivity
|
|||
Log_OC.d(this, "Switch to oc file fragment");
|
||||
|
||||
setLeftFragment(new OCFileListFragment());
|
||||
getSupportFragmentManager().executePendingTransactions();
|
||||
browseToRoot();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue