mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
app: [Android] document DataDir limitations
Document that DataDir is not available before main. References: https://todo.sr.ht/~eliasnaur/gio/229 Signed-off-by: CoyAce <AkeyCoy@gmail.com> Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -130,8 +130,8 @@ func NewContext(ops *op.Ops, e FrameEvent) layout.Context {
|
||||
// On iOS NSDocumentDirectory is queried.
|
||||
// For Android Context.getFilesDir is used.
|
||||
//
|
||||
// BUG: DataDir blocks on Android until init functions
|
||||
// have completed.
|
||||
// Note that on Android, DataDir blocks until main is called.
|
||||
// Don't call it from init functions or global variable initializers.
|
||||
func DataDir() (string, error) {
|
||||
return dataDir()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user