mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
app/internal/wm: [Android] set up view handle before callbacks
Fixes gio#230 (again) Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -298,8 +298,8 @@ func Java_org_gioui_GioView_onCreateView(env *C.JNIEnv, class C.jclass, view C.j
|
|||||||
}
|
}
|
||||||
windows[wopts.window] = w
|
windows[wopts.window] = w
|
||||||
}
|
}
|
||||||
w.callbacks.SetDriver(w)
|
|
||||||
w.view = view
|
w.view = view
|
||||||
|
w.callbacks.SetDriver(w)
|
||||||
handle := C.jlong(view)
|
handle := C.jlong(view)
|
||||||
views[handle] = w
|
views[handle] = w
|
||||||
w.loadConfig(env, class)
|
w.loadConfig(env, class)
|
||||||
|
|||||||
Reference in New Issue
Block a user