Merge "ArrayMap for mIpToNetworksMap" into main

This commit is contained in:
Sewook Seo 2025-07-07 04:49:48 -07:00 • committed by Android (Google) Code Review
commit adfbfab056

View file

@ -2142,7 +2142,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
}
if (mDeps.flagConnectivityServiceDestroySocket()) {
mIpToNetworksMap = new HashMap<>();
mIpToNetworksMap = new ArrayMap<>();
mAddressUpdateMonitor = mDeps.makeAddressUpdateMonitor(
mHandler, new SharedLog(20, TAG), TAG,
this::processNetlinkAddressUpdateMessage);