@Override public void onConnectClick(ConnectionInfo ci) { OPDSBrowserFragment frag = ((OPDSBrowserFragment) tab_opds.getFragment()); if (mCalibreService != null) { mCalibreService.connectToServer(ci); } if (frag != null) { frag.loadURL(ci.getContentServerURL(), false); } }