Remove workaround for media1 session's looper restriction

PiperOrigin-RevId: 351936232
This commit is contained in:
jaewan 2021-01-15 05:18:55 +00:00 committed by Ian Baker
parent 464f53373a
commit 77a559640b

View file

@ -53,14 +53,6 @@ import org.junit.rules.ExternalResource;
@Override
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();
executor = Executors.newFixedThreadPool(1);