title: Keep the actionbar displayed in when changing PreferenceScreen
body: <p>I'm trying to display a actionbar in my preference screen.
  In order to do so I added the following code in my SettingActivity</p>
  
  <pre><code>public class PreferencesActivity extends ActionBarActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.preferences_activity);
          getFragmentManager().beginTransaction()
                  .replace(R.id.container, new PreferencesFragment()).commit();
  
              getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE | ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_HOME_AS_UP);
              getSupportActionBar().setDisplayHomeAsUpEnabled(true);
      }
  }
  </code></pre>
  
  <p>then the rest of my code in PreferencesFragment.
  This works fine, but as soon as I press on a PreferenceScreen preference, the actionbar is hidden. If I go back to the preference main screen I can see it again.
  Any idea how to keep the actionbar displayed (and updated with the PreferenceScreen label) ?</p>
  
  <p>Edit: Looking at the PreferenceScreen code it looks like a full screen Dialog is opened when the PreferenceScreen is clicked on. Because my preference has a title the Dialog should display a title as well... but it doesn't</p>
  
  <blockquote>
  <pre><code>    // Set the title bar if title is available, else no title bar
      final CharSequence title = getTitle();
      Dialog dialog = mDialog = new Dialog(context, context.getThemeResId());
      if (TextUtils.isEmpty(title)) {
          dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE);
      } else {
          dialog.setTitle(title);
      }
  </code></pre>
  </blockquote>