Merge "Fix parsing of WM trace in critical mode"

This commit is contained in:
Nataniel Borges
2021-10-19 10:01:46 +00:00
committed by Android (Google) Code Review

View File

@@ -272,6 +272,10 @@ public class DisplayArea<T extends WindowContainer> extends WindowContainer<T> {
@Override
public void dumpDebug(ProtoOutputStream proto, long fieldId, int logLevel) {
if (logLevel == WindowTraceLogLevel.CRITICAL && !isVisible()) {
return;
}
final long token = proto.start(fieldId);
super.dumpDebug(proto, WINDOW_CONTAINER, logLevel);
proto.write(NAME, mName);