use of com.facebook.stetho.inspector.elements.Descriptor in project stetho by facebook.
the class DialogFragmentDescriptor method getElementToHighlightAtPosition.
@Nullable
@Override
public Object getElementToHighlightAtPosition(Object element, int x, int y, Rect bounds) {
final Descriptor.Host host = getHost();
Dialog dialog = null;
HighlightableDescriptor descriptor = null;
if (host instanceof AndroidDescriptorHost) {
dialog = mAccessor.getDialog(element);
descriptor = ((AndroidDescriptorHost) host).getHighlightableDescriptor(dialog);
}
return descriptor == null ? null : descriptor.getElementToHighlightAtPosition(dialog, x, y, bounds);
}
Aggregations