Remove deprecation warning

As a workaround for some devices, we need to prepare the main looper.
The method is now deprecated, but we still want to call it.
This commit is contained in:
Romain Vimont 2020-10-05 21:09:01 +02:00
parent d50ecf40b6
commit 2edf192e3a
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ public final class Workarounds {
// not instantiable
}
@SuppressWarnings("deprecation")
public static void prepareMainLooper() {
// Some devices internally create a Handler when creating an input Surface, causing an exception:
// "Can't create handler inside thread that has not called Looper.prepare()"