2
0
mirror of synced 2025-02-23 23:08:14 +00:00
Daniel Skinner 39fb9d6163 app: remove incorrect call to AInputQueue_detachLooper
Native activity callback onInputQueueCreated does not attach
a looper to the input queue within android.c. Various examples
of first detaching looper on the web are based around use of
native_app_glue_code which does attach a looper before passing
on to user callback.

Calling detachLooper pre-5.0 results in a crash. I didn't track
down exact source for this but code that likely made it's way
into 5.0 given the time frame can be seen to show a recast of
and iter over size() of a container.

This possibly explains the lack of crashing for 5.0+ instead of
potentially referencing a null pointer pre-5.0.

Fixes golang/go#13741

Change-Id: Ie04de9f34436a95c456a56b34f1ca7e6adc00b09
Reviewed-on: https://go-review.googlesource.com/20145
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2016-03-02 23:58:37 +00:00
..
2015-12-15 18:31:03 +00:00
2016-01-11 18:20:11 +00:00
2015-12-25 00:41:33 +00:00
2016-02-25 00:29:21 +00:00