Skip to content

Commit

Permalink
Use internal file handling for mobile simulator
Browse files Browse the repository at this point in the history
Fixes #1470
  • Loading branch information
andydotxyz committed Jan 13, 2021
1 parent 1e1b49b commit c754994
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions internal/driver/gomobile/folder_desktop.go
Expand Up @@ -2,12 +2,16 @@

package gomobile

import "fyne.io/fyne"
import (
"fyne.io/fyne"
"fyne.io/fyne/storage"
)

func canListURI(fyne.URI) bool {
return false
func canListURI(u fyne.URI) bool {
listable, _ := storage.CanList(u)
return listable
}

func listURI(fyne.URI) ([]fyne.URI, error) {
return nil, nil
func listURI(u fyne.URI) ([]fyne.URI, error) {
return storage.List(u)
}

0 comments on commit c754994

Please sign in to comment.