Search in sources :

Example 1 with MainActivity

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;
}
Also used : MainActivity(forpdateam.ru.forpda.ui.activities.MainActivity) CustomWebViewClient(forpdateam.ru.forpda.common.webview.CustomWebViewClient) CustomWebChromeClient(forpdateam.ru.forpda.common.webview.CustomWebChromeClient) Nullable(android.support.annotation.Nullable)

Aggregations

Nullable (android.support.annotation.Nullable)1 CustomWebChromeClient (forpdateam.ru.forpda.common.webview.CustomWebChromeClient)1 CustomWebViewClient (forpdateam.ru.forpda.common.webview.CustomWebViewClient)1 MainActivity (forpdateam.ru.forpda.ui.activities.MainActivity)1