app: [Android] delete redundant dataDirChan

since dataDir() must call after main(), it's redundant to use channel to send path

Signed-off-by: CoyAce <AkeyCoy@gmail.com>
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
CoyAce
2026-01-07 20:02:19 +08:00
committed by Elias Naur
parent e38f80adc6
commit 99647591f6
2 changed files with 6 additions and 10 deletions
+1 -2
View File
@@ -130,8 +130,7 @@ func NewContext(ops *op.Ops, e FrameEvent) layout.Context {
// On iOS NSDocumentDirectory is queried.
// For Android Context.getFilesDir is used.
//
// Note that on Android, DataDir blocks until main is called.
// Don't call it from init functions or global variable initializers.
// BUG: On Android, DataDir panics if called before main.
func DataDir() (string, error) {
return dataDir()
}