package com.negusoft.holoaccent.example;

import android.os.Bundle;
import android.preference.PreferenceFragment;

import com.negusoft.holoaccent.activity.AccentActivity;

public class PreferencesActivity extends AccentActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
        // Display the fragment as the main content.
        getFragmentManager().beginTransaction()
                .replace(android.R.id.content, new GeneralPreferenceFragment())
                .commit();
	}

	public static class GeneralPreferenceFragment extends PreferenceFragment {
		@Override
		public void onCreate(Bundle savedInstanceState) {
			super.onCreate(savedInstanceState);
			addPreferencesFromResource(R.xml.pref_general);
		}
	}
}

@@ -383,16 +383,62 @@
 ontent.%0A
+        if (savedInstanceState == null) %7B%0A    
         
@@ -477,16 +477,20 @@
 ction()%0A
+    
         
@@ -577,16 +577,20 @@
         
+    
 .commit(
@@ -592,16 +592,26 @@
 mmit();%0A
+        %7D%0A
 %09%7D%0A%0A%09pub

Update PreferenceActivity to keep the state through configuration changes