/*
* Copyright (c) 2010-2016, openHAB.org and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.openhab.habdroid.ui;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.ListFragment;
import java.util.ArrayList;
import java.util.List;
public class StateRetainFragment extends Fragment {
private List<ListFragment> fragmentList = new ArrayList<ListFragment>(0);
private int mCurrentPage;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setRetainInstance(true);
}
public List<ListFragment> getFragmentList() {
return fragmentList;
}
public void setFragmentList(List<ListFragment> fragmentList) {
this.fragmentList = fragmentList;
}
public int getCurrentPage() {
return mCurrentPage;
}
public void setCurrentPage(int currentPage) {
mCurrentPage = currentPage;
}
}