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

Commit 667b656c authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Android (Google) Code Review
Browse files

Merge "Allow multiple calls and names to filter in SurfaceControlRegistry" into main

parents f04be277 d9123e25
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -337,13 +337,13 @@ public class SurfaceControlRegistry {
    @VisibleForTesting
    public final boolean matchesForCallStackDebugging(@Nullable String name, @NonNull String call) {
        final boolean matchCall = !sCallStackDebuggingMatchCall.isEmpty();
        if (matchCall && !call.toLowerCase().contains(sCallStackDebuggingMatchCall)) {
        if (matchCall && !sCallStackDebuggingMatchCall.contains(call.toLowerCase())) {
            // Skip if target call doesn't match requested caller
            return false;
        }
        final boolean matchName = !sCallStackDebuggingMatchName.isEmpty();
        if (matchName && (name == null
                || !name.toLowerCase().contains(sCallStackDebuggingMatchName))) {
                || !sCallStackDebuggingMatchName.contains(name.toLowerCase()))) {
            // Skip if target surface doesn't match requested surface
            return false;
        }