Fix / and /storage/emulated not showing any files #1034
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm not a huge fan of the duplicated code, but I'm not sure how to better fix this. Before this fix /storage/emulated only works in the screen to select the filebrowser home though, so the duplicated code is still better than no code.
Before:
![photo_2020-05-29_20-48-12](https://user-images.githubusercontent.com/1885159/83294546-c1dc9000-a1ed-11ea-98aa-c6f899454572.jpg)
![photo_2020-05-29_20-48-14](https://user-images.githubusercontent.com/1885159/83294544-c143f980-a1ed-11ea-94fd-47869dfbc468.jpg)
![photo_2020-05-29_20-48-16](https://user-images.githubusercontent.com/1885159/83294540-c0ab6300-a1ed-11ea-8e20-39ed4003ccc7.jpg)
After:
![photo_2020-05-29_20-45-21](https://user-images.githubusercontent.com/1885159/83294265-54c8fa80-a1ed-11ea-9d1e-ae97ba46fd53.jpg)
![photo_2020-05-29_20-45-19](https://user-images.githubusercontent.com/1885159/83294269-55619100-a1ed-11ea-9bf4-15671233a31f.jpg)
![photo_2020-05-29_20-45-18](https://user-images.githubusercontent.com/1885159/83294272-55fa2780-a1ed-11ea-9789-60eaa6b84067.jpg)