mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Tweak verifyApplicationThread to compare Threads, not Loopers
#minor-release PiperOrigin-RevId: 371306241
This commit is contained in:
parent
ce8259e20a
commit
92253e1a30
1 changed files with 1 additions and 1 deletions
|
|
@ -2016,7 +2016,7 @@ public class SimpleExoPlayer extends BasePlayer
|
|||
// The constructor may be executed on a background thread. Wait with accessing the player from
|
||||
// the app thread until the constructor finished executing.
|
||||
constructorFinished.blockUninterruptible();
|
||||
if (Looper.myLooper() != getApplicationLooper()) {
|
||||
if (Thread.currentThread() != getApplicationLooper().getThread()) {
|
||||
String message =
|
||||
Util.formatInvariant(
|
||||
"Player is accessed on the wrong thread.\n"
|
||||
|
|
|
|||
Loading…
Reference in a new issue