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

Commit 38f60ace authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Make it easier to match SurfaceControl names when debugging

Change-Id: Ia7859cb113fc86166b72c0d02566eaba15f32250
Test: adb shell setprop persist.wm.debug.sc.tx.log_match_name Taskbar
Fixes: 337990350
parent fa98986b
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -342,12 +342,14 @@ public class SurfaceControlRegistry {
            return false;
        }
        final boolean matchName = !sCallStackDebuggingMatchName.isEmpty();
        if (matchName && (name == null
                || !sCallStackDebuggingMatchName.contains(name.toLowerCase()))) {
            // Skip if target surface doesn't match requested surface
        if (!matchName) {
            return true;
        }
        if (name == null) {
            return false;
        }
        return true;
        return sCallStackDebuggingMatchName.contains(name.toLowerCase()) ||
                        name.toLowerCase().contains(sCallStackDebuggingMatchName);
    }

    /**