Skip to content

Commit

Permalink
Remove deprecation warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rom1v committed Oct 5, 2020
1 parent d50ecf4 commit 2edf192
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ private 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()"
Expand Down

0 comments on commit 2edf192

Please sign in to comment.