Improve wifi handling part two.
If a route is removed, RouteFragment goes into deviceListMode. This change makes it go back into playlistMode if the route set in MediaRouterPlayService is added again.
This commit is contained in:
parent
34137c051e
commit
9bc05b12f5
1 changed files with 5 additions and 1 deletions
|
@ -244,6 +244,10 @@ OnSeekBarChangeListener, OnScrollListener {
|
|||
break;
|
||||
}
|
||||
mRouteAdapter.add(route);
|
||||
|
||||
RouteInfo current = mMediaRouterPlayService.getCurrentRoute();
|
||||
if (current != null && route.getId().equals(current.getId()))
|
||||
playlistMode(current);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Reference in a new issue