scrcpy/server
olbb e282100d0b Call Looper.prepareMainLooper() to avoid exception
Some devices internally create a Handler when creating an input Surface,
causing an exception:

> Surface: java.lang.RuntimeException: Can't create handler inside
> thread that has not called Looper.prepare()

As a workaround, call Looper.prepareMainLooper() beforehand.

Fixes:
 - <https://github.com/Genymobile/scrcpy/issues/240>
 - <https://github.com/Genymobile/scrcpy/issues/921>

Signed-off-by: Romain Vimont <rom@rom1v.com>
2019-11-09 20:31:57 +01:00
..
scripts Always invoke gradle except as root 2018-02-14 14:03:56 +01:00
src Call Looper.prepareMainLooper() to avoid exception 2019-11-09 20:31:57 +01:00
.gitignore Convert server to an Android project 2018-01-30 12:01:36 +01:00
build_without_gradle.sh Rename scrcpy-server.jar to scrcpy-server 2019-10-31 10:54:29 +01:00
build.gradle Bump version to 1.10 2019-08-04 16:41:04 +02:00
meson.build Rename scrcpy-server.jar to scrcpy-server 2019-10-31 10:54:29 +01:00
proguard-rules.pro Convert server to an Android project 2018-01-30 12:01:36 +01:00