Skip to content

Commit

Permalink
Fix thread access when creating notifications for media sessions
Browse files Browse the repository at this point in the history
The sessions may have different application threads for their players,
and the service with its notification provider runs on the main thread.
To ensure everything runs on the correct thread, this change labels
methods where needed and fixes thread access in some places.

Issue: androidx/media#318
PiperOrigin-RevId: 524849598
(cherry picked from commit 73c216d)
  • Loading branch information
tonihei authored and rohitjoins committed Apr 18, 2023
1 parent 26d2b6c commit e2e6411
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testutils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies {
api 'androidx.test.ext:truth:' + androidxTestTruthVersion
api 'junit:junit:' + junitVersion
api 'com.google.truth:truth:' + truthVersion
api 'com.google.truth.extensions:truth-java8-extension:' + truthVersion
compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion
compileOnly 'org.checkerframework:checker-compat-qual:' + checkerframeworkCompatVersion
compileOnly 'org.jetbrains.kotlin:kotlin-annotations-jvm:' + kotlinAnnotationsVersion
Expand Down

0 comments on commit e2e6411

Please sign in to comment.