Merge "Allocate memory before reading from parcel"
am: be8881da3b
Change-Id: I794c9cb48900a9568802aac760767b29df0fdbd1
This commit is contained in:
@@ -110,6 +110,7 @@ public final class AvailableNetworkInfo implements Parcelable {
|
|||||||
private AvailableNetworkInfo(Parcel in) {
|
private AvailableNetworkInfo(Parcel in) {
|
||||||
mSubId = in.readInt();
|
mSubId = in.readInt();
|
||||||
mPriority = in.readInt();
|
mPriority = in.readInt();
|
||||||
|
mMccMncs = new ArrayList<>();
|
||||||
in.readStringList(mMccMncs);
|
in.readStringList(mMccMncs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9796,7 +9796,7 @@ public class TelephonyManager {
|
|||||||
boolean ret = false;
|
boolean ret = false;
|
||||||
try {
|
try {
|
||||||
IOns iOpportunisticNetworkService = getIOns();
|
IOns iOpportunisticNetworkService = getIOns();
|
||||||
if (iOpportunisticNetworkService != null) {
|
if (iOpportunisticNetworkService != null && availableNetworks != null) {
|
||||||
ret = iOpportunisticNetworkService.updateAvailableNetworks(availableNetworks,
|
ret = iOpportunisticNetworkService.updateAvailableNetworks(availableNetworks,
|
||||||
pkgForDebug);
|
pkgForDebug);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user