use of forpdateam.ru.forpda.ui.activities.MainActivity in project ForPDA by RadiationX.
the class ArticleContentFragment method onCreateView.
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
webView = ((MainActivity) getActivity()).getWebViewsProvider().pull(getContext());
registerForContextMenu(webView);
webView.setWebViewClient(new CustomWebViewClient());
webView.setWebChromeClient(new CustomWebChromeClient());
webView.addJavascriptInterface(this, JS_INTERFACE);
loadHtml();
return webView;
}
Aggregations