Fix RuntimeException in GestureDetector for Letterbox.

RuntimeException in GestureDetector happened because GestureDetector constructor may only be used from android.os.Looper thread which wasn't always true. Fixing by explicitly providing the UI thread handler in GestureDetector constructor.

Also, fix tests that were incorrectly changed in ag/15731742 due to this exception.

Fix: 199596390
Test: manual - double tap now works for all apps.
Change-Id: I622474bf2635d7d183b9e04994d0b6f25b1b1e94
2 files changed