Ordering the SIM display name by slot ID to the preference summary.
Bug: 271975836 Test: Manual Test Change-Id: Ib28062c8d0f1299cf30d494561c161fc4532dbc9
This commit is contained in:
@@ -24,7 +24,6 @@ import android.content.Intent;
|
||||
import android.os.UserManager;
|
||||
import android.telephony.SubscriptionManager;
|
||||
import android.telephony.euicc.EuiccManager;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.lifecycle.Lifecycle;
|
||||
import androidx.lifecycle.LifecycleObserver;
|
||||
@@ -135,6 +134,7 @@ public class MobileNetworkSummaryController extends AbstractPreferenceController
|
||||
return mContext.getString(R.string.mobile_network_tap_to_activate, displayName);
|
||||
} else {
|
||||
return mSubInfoEntityList.stream()
|
||||
.sorted((e1, e2) -> Integer.compare(e1.simSlotIndex, e2.simSlotIndex))
|
||||
.map(SubscriptionInfoEntity::getUniqueDisplayName)
|
||||
.collect(Collectors.joining(", "));
|
||||
}
|
||||
|
Reference in New Issue
Block a user