[Settings] Fix the error of checking the null point
Change-Id: Ied5d9d5268d9d6d83b2995ae0e56bf5f0276ad22 Test: manual
This commit is contained in:
@@ -965,7 +965,7 @@ public class MobileNetworkUtils {
|
||||
*/
|
||||
public static CharSequence getPreferredStatus(boolean isRtlMode, Context context,
|
||||
boolean isPreferredCallStatus, List<SubscriptionInfoEntity> entityList) {
|
||||
if (entityList != null || !entityList.isEmpty()) {
|
||||
if (entityList != null && !entityList.isEmpty()) {
|
||||
final StringBuilder summary = new StringBuilder();
|
||||
for (SubscriptionInfoEntity subInfo : entityList) {
|
||||
int subsSize = entityList.size();
|
||||
|
||||
Reference in New Issue
Block a user