diff --git a/src/com/android/settings/network/telephony/MobileNetworkUtils.java b/src/com/android/settings/network/telephony/MobileNetworkUtils.java index ff9ef395e23..308da88ed34 100644 --- a/src/com/android/settings/network/telephony/MobileNetworkUtils.java +++ b/src/com/android/settings/network/telephony/MobileNetworkUtils.java @@ -965,7 +965,7 @@ public class MobileNetworkUtils { */ public static CharSequence getPreferredStatus(boolean isRtlMode, Context context, boolean isPreferredCallStatus, List entityList) { - if (entityList != null || !entityList.isEmpty()) { + if (entityList != null && !entityList.isEmpty()) { final StringBuilder summary = new StringBuilder(); for (SubscriptionInfoEntity subInfo : entityList) { int subsSize = entityList.size();