Merge "Fix missing computeIfAbsent() method in L_MR1 and M" am: db1ebc265c am: feaad2df13 am: 69cd91a75f
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/1341554 Change-Id: I6fade445937470598e0b09f1ae73e8e535530684
This commit is contained in:
@@ -250,8 +250,11 @@ public class DataModelImpl extends DataModel {
|
|||||||
if (subId <= ParticipantData.DEFAULT_SELF_SUB_ID) {
|
if (subId <= ParticipantData.DEFAULT_SELF_SUB_ID) {
|
||||||
subId = PhoneUtils.getDefault().getDefaultSmsSubscriptionId();
|
subId = PhoneUtils.getDefault().getDefaultSmsSubscriptionId();
|
||||||
}
|
}
|
||||||
sConnectivityUtilInstanceCacheLMR1.computeIfAbsent(
|
|
||||||
subId, key -> new ConnectivityUtil(mContext, key));
|
if (!sConnectivityUtilInstanceCacheLMR1.containsKey(subId)) {
|
||||||
|
sConnectivityUtilInstanceCacheLMR1.put(
|
||||||
|
subId, new ConnectivityUtil(mContext, subId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user