Settings: fix unexpected routing selection

setRouterGroupId in WifiDisplayPreferenceController will result in unexpected routing selection in MediaRouter, which will lead to WFD scanning not be triggered when entering WFD settings page if there is one remembered WFD device exists before reboot.

Remove the set group id call.

Bug: 351110755

Change-Id: I0d434543338d9896116541963f31e4669d877ea8
This commit is contained in:
hoffc
2024-07-04 16:24:57 +08:00
committed by Hoff Cheng
parent ed9bccb0b3
commit 99e33291d3

View File

@@ -65,7 +65,6 @@ public class WifiDisplayPreferenceController extends BasePreferenceController im
public WifiDisplayPreferenceController(Context context, String key) { public WifiDisplayPreferenceController(Context context, String key) {
super(context, key); super(context, key);
mRouter = context.getSystemService(MediaRouter.class); mRouter = context.getSystemService(MediaRouter.class);
mRouter.setRouterGroupId(MediaRouter.MIRRORING_GROUP_ID);
} }
@Override @Override