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:
parent
d50ecf40b6
commit
2edf192e3a
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ public final class Workarounds {
|
||||||
// not instantiable
|
// not instantiable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public static void prepareMainLooper() {
|
public static void prepareMainLooper() {
|
||||||
// Some devices internally create a Handler when creating an input Surface, causing an exception:
|
// 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()"
|
// "Can't create handler inside thread that has not called Looper.prepare()"
|
||||||
|
|
Loading…
Reference in a new issue