Search in sources :

Example 6 with RefWatcher

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);
}
Also used : RefWatcher(com.squareup.leakcanary.RefWatcher)

Example 7 with RefWatcher

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);
}
Also used : RefWatcher(com.squareup.leakcanary.RefWatcher)

Example 8 with RefWatcher

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);
}
Also used : RefWatcher(com.squareup.leakcanary.RefWatcher)

Example 9 with RefWatcher

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;
    }
}
Also used : TelephonyManager(android.telephony.TelephonyManager) RefWatcher(com.squareup.leakcanary.RefWatcher)

Example 10 with RefWatcher

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);
}
Also used : RefWatcher(com.squareup.leakcanary.RefWatcher)

Aggregations

RefWatcher (com.squareup.leakcanary.RefWatcher)62 SharedPreferences (android.content.SharedPreferences)2 IOException (java.io.IOException)2 Manifest (android.Manifest)1 Application (android.app.Application)1 ContentProviderOperation (android.content.ContentProviderOperation)1 ContentUris (android.content.ContentUris)1 ContentValues (android.content.ContentValues)1 PackageManager (android.content.pm.PackageManager)1 Environment (android.os.Environment)1 StrictMode (android.os.StrictMode)1 MediaStore (android.provider.MediaStore)1 NonNull (android.support.annotation.NonNull)1 ContextCompat (android.support.v4.content.ContextCompat)1 PreferenceManager (android.support.v7.preference.PreferenceManager)1 TelephonyManager (android.telephony.TelephonyManager)1 TextUtils (android.text.TextUtils)1 Log (android.util.Log)1 Collectors (com.annimon.stream.Collectors)1 Stream (com.annimon.stream.Stream)1