Code example for ListFragment

Methods: onDestroy

0
        initMenuItems(); 
    } 
     
    @Override 
    public 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();
        } 
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE