Commit 0bbb6ff2 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

AboutActivity: keep the selected tab open after a screen rotation

parent e0b9f50e
......@@ -38,6 +38,9 @@ import android.widget.TextView;
public class AboutActivity extends FragmentActivity implements OnTabChangeListener {
public final static String TAG = "VLC/AboutActivity";
private final static String CURRENT_TAB_TAG = "tabtag";
private final static String CURRENT_TAB_ID = "tabid";
private class DummyContentFactory implements TabHost.TabContentFactory {
private final Context mContext;
public DummyContentFactory(Context ctx) {
......@@ -92,6 +95,15 @@ public class AboutActivity extends FragmentActivity implements OnTabChangeListen
if (savedInstanceState != null) {
protected void onSaveInstanceState(Bundle outState) {
outState.putString(CURRENT_TAB_TAG, mCurrentTabTag);
outState.putInt(CURRENT_TAB_ID, mTabHost.getCurrentTab());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment