예제 #1
0
 @Override
 public void onBackPressed() {
   OPDSBrowserFragment frag = (OPDSBrowserFragment) tab_opds.getFragment();
   if (frag == null || !frag.isVisible() || !frag.loadPreviousPage()) {
     super.onBackPressed();
   }
 }
예제 #2
0
  @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);
    }
  }