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();
        } 
    } 
}