ui/app,apps/gophers,apps/hello: revert NewWindow to CreateWindow

It turns out we already support multiple windows on Android: when
the activity is recreated.

This reverts commit f21b5eb1df.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-04-02 19:26:23 +02:00
parent 6899f96532
commit ed2590e30e
9 changed files with 90 additions and 80 deletions
+2 -4
View File
@@ -55,8 +55,6 @@ type window struct {
var theJVM *C.JavaVM
var windows = make(chan *Window)
var views = make(map[C.jlong]*window)
func jniGetMethodID(env *C.JNIEnv, class C.jclass, method, sig string) C.jmethodID {
@@ -381,6 +379,6 @@ func Main() {
panic("unreachable")
}
func createWindow(opts *WindowOptions) (*Window, error) {
return <-windows, nil
func createWindow(opts *WindowOptions) error {
return errors.New("createWindow not supported")
}