Code example for ListFragment

Methods: onDestroy

0
 
    @Override 
    public void onDestroy() { 
        mListView = null;
        this.dispatchActivityDestroy();
        super.onDestroy(); 
    } 
 
    public PreferenceManager getPreferenceManager() {
        return mPreferenceManager;
    } 
 
    private PreferenceManager createPreferenceManager() {
        try { 
            Constructor<PreferenceManager> c = PreferenceManager.class.getDeclaredConstructor(Activity.class, int.class);
            c.setAccessible(true);
            return c.newInstance(this.getActivity(), FIRST_REQUEST_CODE);
        } catch (Exception e) {
            throw new RuntimeException(e);
        } 
    }