commit | a17fc042dd0a02536f5963cb602885c7d166e34d | [log] [tgz] |
---|---|---|
author | Tom Hsu <tomhsu@google.com> | Mon Aug 09 04:20:31 2021 +0000 |
committer | Tom Hsu <tomhsu@google.com> | Tue Aug 10 04:40:52 2021 +0000 |
tree | f1a7bbe995146a73072db65e643ffb00ab795b93 | |
parent | 24d844a02c2afb11e2cd16b94eb4ce34e2ba90f5 [diff] |
Selects a active sim to MobileNetworkActivity w/o subscription ID input Bug:194754151 Test: Sanity test with test build. See b/194754151#21 Change-Id: Ic3449392a7f564b69c3f42cc762ec4c9ec642797
diff --git a/src/com/android/settings/network/telephony/MobileNetworkActivity.java b/src/com/android/settings/network/telephony/MobileNetworkActivity.java index b122cdc..c6fe39c 100644 --- a/src/com/android/settings/network/telephony/MobileNetworkActivity.java +++ b/src/com/android/settings/network/telephony/MobileNetworkActivity.java
@@ -257,6 +257,7 @@ if (currentSubInfo == null) { currentSubInfo = subList.stream() .filter(SubscriptionAnnotation::isDisplayAllowed) + .filter(SubscriptionAnnotation::isActive) .findFirst().orElse(null); } return (currentSubInfo == null) ? null : currentSubInfo.getSubInfo();