Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef682fd7 authored by Hyundo Moon's avatar Hyundo Moon
Browse files

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
parent bd38efdc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;