Messaging: Remove compatibility for old android versions
Change-Id: Id9065d60525a509271a0e64c0e349e857cb998e2
This commit is contained in:
@@ -353,14 +353,10 @@ public class ParticipantRefresh {
|
||||
* that any other older SIM self participants are marked as inactive.
|
||||
*/
|
||||
private static void refreshSelfParticipantList() {
|
||||
if (!OsUtil.isAtLeastL_MR1()) {
|
||||
return;
|
||||
}
|
||||
|
||||
final DatabaseWrapper db = DataModel.get().getDatabase();
|
||||
|
||||
final List<SubscriptionInfo> subInfoRecords =
|
||||
PhoneUtils.getDefault().toLMr1().getActiveSubscriptionInfoList();
|
||||
PhoneUtils.getDefault().getActiveSubscriptionInfoList();
|
||||
final ArrayMap<Integer, SubscriptionInfo> activeSubscriptionIdToRecordMap =
|
||||
new ArrayMap<Integer, SubscriptionInfo>();
|
||||
db.beginTransaction();
|
||||
@@ -445,13 +441,11 @@ public class ParticipantRefresh {
|
||||
changed = SELF_PHONE_NUMBER_OR_SUBSCRIPTION_CHANGED;
|
||||
}
|
||||
|
||||
if (OsUtil.isAtLeastL_MR1()) {
|
||||
// Refresh the subscription info based on information from SubscriptionManager.
|
||||
final SubscriptionInfo subscriptionInfo =
|
||||
PhoneUtils.get(participantData.getSubId()).toLMr1().getActiveSubscriptionInfo();
|
||||
if (participantData.updateSubscriptionInfoForSelfIfChanged(subscriptionInfo)) {
|
||||
changed = SELF_PHONE_NUMBER_OR_SUBSCRIPTION_CHANGED;
|
||||
}
|
||||
// Refresh the subscription info based on information from SubscriptionManager.
|
||||
final SubscriptionInfo subscriptionInfo =
|
||||
PhoneUtils.get(participantData.getSubId()).getActiveSubscriptionInfo();
|
||||
if (participantData.updateSubscriptionInfoForSelfIfChanged(subscriptionInfo)) {
|
||||
changed = SELF_PHONE_NUMBER_OR_SUBSCRIPTION_CHANGED;
|
||||
}
|
||||
|
||||
// For self participant, try getting name/avatar from self profile in CP2 first.
|
||||
|
||||
Reference in New Issue
Block a user