public void setUpViews() {
    mActivity.setSupportActionBar(mToolbar);
    mActivity.getSupportActionBar().setHomeButtonEnabled(true);
    mActivity.getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    mDrawerToggle =
        new ActionBarDrawerToggle(
            mActivity,
            mActivity.getDrawerLayout(),
            mToolbar,
            R.string.navigation_drawer_open,
            R.string.navigation_drawer_close);
    mActivity.getDrawerLayout().setDrawerListener(mDrawerToggle);
    mDrawerToggle.syncState();

    mRefresh.setColorSchemeResources(R.color.colorPrimary);
    mRefresh.setOnRefreshListener(
        new SwipeRefreshLayout.OnRefreshListener() {
          @Override
          public void onRefresh() {
            if (!showRefreshDialog()) {
              mWebView.loadUrl(mURL);
            }
          }
        });

    setUpWebView();
  }
 @Override
 public void onPageFinished(String s) {
   mActivity.setTitle(mWebView.getTitle());
   if (mRefresh.isRefreshing()) {
     mRefresh.setRefreshing(false);
   }
 }