5c91e60c93
This CL fixes two bugs in the existing app implementation on android. The first, is it assumed a single NativeActivity instance is created per process. This is not true. If you open an app, hit the back button, then open it again, the original activity is destroyed and a new one is created. So only call main.main in the first onCreate. The second bug has to do with window lifetimes. Previously we only processed GL work while the window existed, as part of a paint cycle. This missed GL events called as part of a lifecycle downgrade when the window was destroyed. (I.e. the contents of onStop.) This CL fixes this by making the main android event processing loop last for the life of the process, not the window. Fixes golang/go#11804. Change-Id: Ia03e464aab5bc10ba75564b7ca11054515cda011 Reviewed-on: https://go-review.googlesource.com/12533 Reviewed-by: Nigel Tao <nigeltao@golang.org> |
||
---|---|---|
.. | ||
internal | ||
GoNativeActivity.java | ||
android.c | ||
android.go | ||
app.go | ||
app_test.go | ||
darwin_amd64.go | ||
darwin_amd64.m | ||
darwin_armx.go | ||
darwin_armx.m | ||
doc.go | ||
loop_android.go | ||
x11.c | ||
x11.go |