Ejemplo n.º 1
0
  @Override
  protected void onPause() {
    super.onPause();

    search.dismissDialogs();
    library.dismissDialogs();
    peers.dismissDialogs();
  }
Ejemplo n.º 2
0
  @Override
  protected void onPause() {
    super.onPause();

    if (mainBroadcastReceiver != null) {
      try {
        unregisterReceiver(mainBroadcastReceiver);
      } catch (Throwable t) {
        // oh well (the api doesn't provide a way to know if it's been registered before,
        // seems like overkill keeping track of these ourselves.)
      }
    }
  }