Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86529d19 authored by Antonio Kantek's avatar Antonio Kantek
Browse files

Remove check for SUBTYPE_MODE_ANY in containsSubtypeOf

Removing unnecessary check since `TextUtils.isEmpty` already check for
null string argument.

Bug: 304341834
Test: atest FrameworksServicesTests
Change-Id: I648f3d3d56793c7b6b7cba00d584c0c0186efc8e
parent ab263c26
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -86,8 +86,7 @@ final class SubtypeUtils {
                    continue;
                }
            }
            if (mode == SUBTYPE_MODE_ANY || TextUtils.isEmpty(mode)
                    || mode.equalsIgnoreCase(subtype.getMode())) {
            if (TextUtils.isEmpty(mode) || mode.equalsIgnoreCase(subtype.getMode())) {
                return true;
            }
        }