Merge "Fix missing computeIfAbsent() method in L_MR1 and M" am: db1ebc265c am: feaad2df13 am: 69cd91a75f am: db44cbe6db
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/1341554 Change-Id: I88ec3dce9df8ebcdae903a43bfd2b8f49059ceb7
This commit is contained in:
@@ -250,8 +250,11 @@ public class DataModelImpl extends DataModel {
|
||||
if (subId <= ParticipantData.DEFAULT_SELF_SUB_ID) {
|
||||
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