Remove duplicate routing logic from Settings app

Also, remove unused MediaRouter2Manager references.

This is a non-functional change.

Bug: 192657812
Test: Presubmit
Change-Id: I72f5f40e157cea922ad40a2602fba881572fb708
This commit is contained in:
Iván Budnik
2023-07-10 15:07:56 +00:00
parent 5c44a4b751
commit f9fc86593c
6 changed files with 14 additions and 30 deletions

View File

@@ -54,7 +54,7 @@ public class RemoteVolumeGroupController extends BasePreferenceController implem
static final String SWITCHER_PREFIX = "OUTPUT_SWITCHER";
private PreferenceCategory mPreferenceCategory;
private List<RoutingSessionInfo> mRoutingSessionInfos = new ArrayList<>();
private final List<RoutingSessionInfo> mRoutingSessionInfos = new ArrayList<>();
@VisibleForTesting
LocalMediaManager mLocalMediaManager;
@@ -89,11 +89,7 @@ public class RemoteVolumeGroupController extends BasePreferenceController implem
private void initRemoteMediaSession() {
mRoutingSessionInfos.clear();
for (RoutingSessionInfo info : mLocalMediaManager.getActiveMediaSession()) {
if (!info.isSystemSession()) {
mRoutingSessionInfos.add(info);
}
}
mRoutingSessionInfos.addAll(mLocalMediaManager.getRemoteRoutingSessions());
}
@Override