[Settings] Only display backup calling when more than 1 SIM

Backup calling only available when more than 1 SIM available.

Bug: 179802059
Test: on device
Change-Id: I24e5eb9e1a7064c3ea65389fbb00c0ff2a5852ed
This commit is contained in:
Bonian Chen
2021-02-28 16:31:08 +08:00
parent 3d4dc769bd
commit a9a411e3df
2 changed files with 42 additions and 14 deletions

View File

@@ -70,6 +70,9 @@ public class SubscriptionUtil {
if (sActiveResultsForTesting != null) {
return sActiveResultsForTesting;
}
if (manager == null) {
return Collections.emptyList();
}
final List<SubscriptionInfo> subscriptions = manager.getActiveSubscriptionInfoList();
if (subscriptions == null) {
return new ArrayList<>();