MediaRouter2: Fix getRoutes() returning an empty list

By doing this, calling getRoutes() after instantiation will not return
an empty list.

Bug: 156319555
Test: Passed CTS
Change-Id: I4e5158b89d54e06f36dc37a3ca345849f0c91440
This commit is contained in:
Hyundo Moon
2020-05-12 13:52:32 +09:00
parent bd38efdcc2
commit ef682fd78b

View File

@@ -98,7 +98,7 @@ public final class MediaRouter2 {
final Handler mHandler;
@GuardedBy("sRouterLock")
private boolean mShouldUpdateRoutes;
private boolean mShouldUpdateRoutes = true;
private volatile List<MediaRoute2Info> mFilteredRoutes = Collections.emptyList();
private volatile OnGetControllerHintsListener mOnGetControllerHintsListener;