/*
 * =================================================================================================
 *                             Copyright (C) 2014 Martin Albedinsky
 * =================================================================================================
 *         Licensed under the Apache License, Version 2.0 or later (further "License" only).
 * -------------------------------------------------------------------------------------------------
 * You may use this file only in compliance with the License. More details and copy of this License 
 * you may obtain at
 * 
 * 		http://www.apache.org/licenses/LICENSE-2.0
 * 
 * You can redistribute, modify or publish any part of the code written within this file but as it 
 * is described in the License, the software distributed under the License is distributed on an 
 * "AS IS" BASIS, WITHOUT WARRANTIES or CONDITIONS OF ANY KIND.
 * 
 * See the License for the specific language governing permissions and limitations under the License.
 * =================================================================================================
 */
package com.albedinsky.android.ui.examples.fragment.components.collection;

import com.albedinsky.android.support.fragment.manage.FragmentController;
import com.albedinsky.android.ui.examples.fragment.BaseSectionNavigationFragment;

/**
 * @author Martin Albedinsky
 */
public abstract class BaseCollectionsFragment extends BaseSectionNavigationFragment {

	@SuppressWarnings("unused")
	private static final String TAG = "BaseCollectionsFragment";

	@Override
	protected boolean hasOwnFragmentsFactory() {
		return true;
	}

	@Override
	protected void onAttachFragmentsFactory(FragmentController fragmentController) {
		fragmentController.setFragmentFactory(new CollectionFragments());
	}
}
