use of com.squareup.leakcanary.RefWatcher in project MusicDNA by harjot-oberai.
the class QueueFragment 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 ViewAlbumFragment 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 ViewArtistFragment 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 HomeActivity method onDestroy.
@Override
protected void onDestroy() {
super.onDestroy();
unregisterReceiver(headSetReceiver);
RefWatcher refWatcher = MusicDNAApplication.getRefWatcher(this);
refWatcher.watch(this);
TelephonyManager mgr = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
if (mgr != null) {
mgr.listen(phoneStateListener, PhoneStateListener.LISTEN_NONE);
}
if (bound) {
// unregister
myService.setCallbacks(null);
unbindService(serviceConnection);
bound = false;
}
}
use of com.squareup.leakcanary.RefWatcher in project MusicDNA by harjot-oberai.
the class ViewPlaylistFragment method onDestroy.
@Override
public void onDestroy() {
super.onDestroy();
RefWatcher refWatcher = MusicDNAApplication.getRefWatcher(getContext());
refWatcher.watch(this);
}
Aggregations