private void parseExtras(Bundle icicle){

        Intent intent = getIntent();
        if(intent != null){
            mXmlConfigId = intent.getIntExtra(EXTRA_CONFIG, -1);
            mTitle = intent.getStringExtra(EXTRA_TITLE);
        }

        if(icicle != null){
            mXmlConfigId = icicle.getInt(EXTRA_CONFIG, -1);
            mTitle = icicle.getString(EXTRA_TITLE);
        }

        if(mXmlConfigId == -1) finish();

        // Set title
        if(!TextUtils.isEmpty(mTitle)) getSupportActionBar().setTitle(mTitle);

        // Apply Configuration
        List<com.ftinc.kit.attributr.model.Library> libs = com.ftinc.kit.attributr.internal.Parser.parse(this, mXmlConfigId);
        mAdapter = new com.ftinc.kit.attributr.ui.LibraryAdapter();
        mAdapter.addAll(libs);
        mAdapter.sort(new com.ftinc.kit.attributr.model.Library.LibraryComparator());
        mAdapter.notifyDataSetChanged();
    }
private void parseExtras ( Bundle icicle ) { Intent intent = getIntent ( ) ; if ( intent != null ) { mXmlConfigId = intent . getIntExtra ( EXTRA_CONFIG , - 1 ) ; mTitle = intent . getStringExtra ( EXTRA_TITLE ) ; } if ( icicle != null ) { mXmlConfigId = icicle . getInt ( EXTRA_CONFIG , - 1 ) ; mTitle = icicle . getString ( EXTRA_TITLE ) ; } if ( mXmlConfigId == - 1 ) finish ( ) ; if ( ! TextUtils . isEmpty ( mTitle ) ) getSupportActionBar ( ) . setTitle ( mTitle ) ; List < com . ftinc . kit . attributr . model . Library > libs = com . ftinc . kit . attributr . internal . Parser . parse ( this , mXmlConfigId ) ; mAdapter = new com . ftinc . kit . attributr . ui . LibraryAdapter ( ) ; mAdapter . addAll ( libs ) ; mAdapter . sort ( new com . ftinc . kit . attributr . model . Library . LibraryComparator ( ) ) ; mAdapter . notifyDataSetChanged ( ) ; }
Parse the Intent or saved bundle extras for the configuration and title data