use of com.squareup.leakcanary.RefWatcher in project MusicDNA by harjot-oberai.
the class PlayerFragment method onDestroyView.
@Override
public void onDestroyView() {
super.onDestroyView();
super.onDestroy();
RefWatcher refWatcher = MusicDNAApplication.getRefWatcher(getContext());
refWatcher.watch(this);
if (mMediaPlayer != null) {
if (mMediaPlayer.isPlaying()) {
mMediaPlayer.stop();
}
mMediaPlayer.release();
mMediaPlayer = null;
}
if (mVisualizer != null) {
mVisualizer.release();
}
}
use of com.squareup.leakcanary.RefWatcher in project MusicDNA by harjot-oberai.
the class RecentsFragment method onDestroy.
@Override
public void onDestroy() {
super.onDestroy();
RefWatcher refWatcher = MusicDNAApplication.getRefWatcher(getContext());
refWatcher.watch(this);
}
use of com.squareup.leakcanary.RefWatcher in project MusicDNA by harjot-oberai.
the class SettingsFragment method onDestroy.
@Override
public void onDestroy() {
super.onDestroy();
RefWatcher refWatcher = MusicDNAApplication.getRefWatcher(getContext());
refWatcher.watch(this);
}
use of com.squareup.leakcanary.RefWatcher in project MusicDNA by harjot-oberai.
the class SettingsFragment method onDestroyView.
@Override
public void onDestroyView() {
super.onDestroyView();
RefWatcher refWatcher = MusicDNAApplication.getRefWatcher(getContext());
refWatcher.watch(this);
}
use of com.squareup.leakcanary.RefWatcher in project MusicDNA by harjot-oberai.
the class StreamMusicFragment method onDestroyView.
@Override
public void onDestroyView() {
super.onDestroyView();
RefWatcher refWatcher = MusicDNAApplication.getRefWatcher(getContext());
refWatcher.watch(this);
}
Aggregations