Skip to content

Commit e2e6411

Browse files
toniheirohitjoins
authored andcommitted
Fix thread access when creating notifications for media sessions
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)
1 parent 26d2b6c commit e2e6411

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

testutils/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dependencies {
2020
api 'androidx.test.ext:truth:' + androidxTestTruthVersion
2121
api 'junit:junit:' + junitVersion
2222
api 'com.google.truth:truth:' + truthVersion
23+
api 'com.google.truth.extensions:truth-java8-extension:' + truthVersion
2324
compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion
2425
compileOnly 'org.checkerframework:checker-compat-qual:' + checkerframeworkCompatVersion
2526
compileOnly 'org.jetbrains.kotlin:kotlin-annotations-jvm:' + kotlinAnnotationsVersion

0 commit comments

Comments
 (0)