@Override public LayoutInflater getLayoutInflater() { if (getCase() == null) { return super.getLayoutInflater(); } ILayoutInflaterService layoutInflaterService = getCase().getService(ILayoutInflaterService.class); return layoutInflaterService.getLayoutInflater(this); }
@Override public Object getSystemService(String name) { if (getCase() == null) { super.getSystemService(name); } Object service = super.getSystemService(name); if (service instanceof LayoutInflater) { ILayoutInflaterService layoutInflaterService = getCase().getService(ILayoutInflaterService.class); if (layoutInflaterService != null) return layoutInflaterService.getLayoutInflater((LayoutInflater) service); } return service; }