Merge "Provide all the reasons a layer is invisible in Winscope"
This commit is contained in:
committed by
Android (Google) Code Review
commit
c97d630037
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user