mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Remove workaround for media1 session's looper restriction
PiperOrigin-RevId: 351936232
This commit is contained in:
parent
464f53373a
commit
77a559640b
1 changed files with 0 additions and 8 deletions
|
|
@ -53,14 +53,6 @@ import org.junit.rules.ExternalResource;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void before() {
|
protected void before() {
|
||||||
// Workaround limitation in androidx.media2.session:1.0.3 which session can only be instantiated
|
|
||||||
// on thread with prepared Looper.
|
|
||||||
// TODO: Remove when androidx.media2.session:1.1.0 is released without the limitation
|
|
||||||
// [Internal: b/146536708]
|
|
||||||
if (Looper.myLooper() == null) {
|
|
||||||
Looper.prepare();
|
|
||||||
}
|
|
||||||
|
|
||||||
context = ApplicationProvider.getApplicationContext();
|
context = ApplicationProvider.getApplicationContext();
|
||||||
executor = Executors.newFixedThreadPool(1);
|
executor = Executors.newFixedThreadPool(1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue