Fix the wrong comparison
Bug: 173387374 Test: atest NetworkSelectSettingsTest (PASS) test on real device (PASS) Change-Id: Ib1135b0457b4e35db67e671cad142657457d6d75
This commit is contained in:
committed by
SongFerng Wang
parent
1a6982f195
commit
1bcba3d23f
@@ -327,10 +327,10 @@ public class NetworkSelectSettings extends DashboardFragment {
|
||||
Class className = cellInfo.getClass();
|
||||
|
||||
if (aggregatedList.stream().anyMatch(
|
||||
i -> {
|
||||
return (CellInfoUtil.getNetworkTitle(i.getCellIdentity(),
|
||||
CellInfoUtil.getCellIdentityMccMnc(i.getCellIdentity())) == plmn)
|
||||
&& i.getClass().equals(className);
|
||||
item -> {
|
||||
String itemPlmn = CellInfoUtil.getNetworkTitle(item.getCellIdentity(),
|
||||
CellInfoUtil.getCellIdentityMccMnc(item.getCellIdentity()));
|
||||
return itemPlmn.equals(plmn) && item.getClass().equals(className);
|
||||
})) {
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user