TabSwipeActivity - Tabs disappear on rotation
Maybe I don't get it right, but I have got an activity that looks like that:
public class TabListActivity extends TabSwipeActivity {
@Override
public void onHandleTabs() {
addTab("Tab #1", TabsTabsSwipeFragment.class, new Bundle());
addTab("Tab #2", TabsTabsSwipeFragment.class,new Bundle());
addTab("Tab #3", TabsTabsSwipeFragment.class, new Bundle());
}
}
With TabsTabsSwipeFragment.class that looks like that:
public class TabsTabsSwipeFragment extends ListFragment {
}
On start all tabs are visable, but on rotation, the tabs disappear. I don't use android:configChanges in the manifest file, so the activity is recreated on rotation, but this could happen also when the OS frees memory.
I've found out, that I can fix it, by writing:
addonTabber().onPostCreate(savedInstanceState);
in TabListActivity's onCreate().
So I guess the issue can be closed, but I am not sure, if TabSwipeActivity is not actually supposed to take care of rotations. So I'll let the issue open for you to decide.
Thank you for this woderful project
TabSwipeActivity should correctly process all config changes (including rotation). Make sure that you have no this bug? Could you repeat it with latest version or find a similar in issues project?