fix: hierarcy -> hierarchy

This commit is contained in:
Isayah Vidito 2022-03-25 14:21:34 -03:00
parent 57be50cab1
commit 06a468fb36

View File

@ -191,13 +191,13 @@ public class XAdRemover {
Log.d("Litho", "Item is null."); Log.d("Litho", "Item is null.");
} else if (item.getClass().getSimpleName().contains("cwl")) { } else if (item.getClass().getSimpleName().contains("cwl")) {
Log.d("Litho", "Item is a cwl item."); Log.d("Litho", "Item is a cwl item.");
Log.i("Litho", getViewHierarcy((ViewGroup) item)); Log.i("Litho", getViewHierarchy((ViewGroup) item));
} else { } else {
Log.d("Litho", "Item is not a cwl item."); Log.d("Litho", "Item is not a cwl item.");
} }
} }
public static String getViewHierarcy(ViewGroup v) { public static String getViewHierarchy(ViewGroup v) {
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
printViews(v, buf, 0); printViews(v, buf, 0);
return buf.toString(); return buf.toString();