Merge "Provide all the reasons a layer is invisible in Winscope"

This commit is contained in:
Nataniel Borges
2022-01-27 07:40:04 +00:00
committed by Android (Google) Code Review

View File

@@ -37,7 +37,14 @@ export default {
const summary = [];
if (layer?.visibilityReason) {
summary.push({key: 'Invisible due to', value: layer.visibilityReason});
let reason = "";
if (Array.isArray(layer.visibilityReason)) {
reason = layer.visibilityReason.join(", ");
} else {
reason = layer.visibilityReason;
}
summary.push({key: 'Invisible due to', value: reason});
}
if (layer?.occludedBy?.length > 0) {