コード例 #1
0
  @Override
  protected void onDestroy() {
    super.onDestroy();

    // avoid memory leaks when the device is tilted and the menu gets recreated.
    SoftwareUpdater.instance().removeConfigurationUpdateListener(this);

    if (playerItem != null) {
      playerItem.unbindDrawables();
    }
  }
コード例 #2
0
  @Override
  protected void onDestroy() {
    super.onDestroy();

    if (playerSubscription != null) {
      playerSubscription.unsubscribe();
    }

    // avoid memory leaks when the device is tilted and the menu gets recreated.
    SoftwareUpdater.instance().removeConfigurationUpdateListener(this);

    if (playerItem != null) {
      playerItem.unbindDrawables();
    }

    if (mToken != null) {
      MusicUtils.unbindFromService(mToken);
      mToken = null;
    }
  }