preferences_android.go 579 B

123456789101112131415161718192021
  1. //go:build android
  2. // +build android
  3. package app
  4. import "path/filepath"
  5. // storagePath returns the location of the settings storage
  6. func (p *preferences) storagePath() string {
  7. // we have no global storage, use app global instead - rootConfigDir looks up in app_mobile_and.go
  8. return filepath.Join(p.app.storageRoot(), "preferences.json")
  9. }
  10. // storageRoot returns the location of the app storage
  11. func (a *fyneApp) storageRoot() string {
  12. return rootConfigDir() // we are in a sandbox, so no app ID added to this path
  13. }
  14. func (p *preferences) watch() {
  15. // no-op on mobile
  16. }