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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user