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
@@ -42,8 +42,6 @@ var layerFactory func() uintptr
var views = make(map[C.CFTypeRef]*window)
var windows = make(chan *Window)
func init() {
// Darwin requires UI operations happen on the main thread only.
runtime.LockOSThread()
@@ -235,8 +233,8 @@ func (w *window) setTextInput(s key.TextInputState) {
}
}
func createWindow(opts *WindowOptions) (*Window, error) {
return <-windows, nil
func createWindow(opts *WindowOptions) error {
panic("unsupported")
}
func Main() {