package org.nick.wwwjdic;

import java.util.List;

import android.os.Bundle;
import android.preference.PreferenceActivity;

public class WwwjdicPreferencesHC extends PreferenceActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setTitle(R.string.settings);
    }

    @Override
    public void onBuildHeaders(List<Header> target) {
        loadHeadersFromResource(R.xml.pref_headers, target);
    }


    @Override
    protected void onStart() {
        super.onStart();

        getActionBar().setDisplayHomeAsUpEnabled(true);
    }

    @Override
    public boolean onOptionsItemSelected(android.view.MenuItem item) {
        switch (item.getItemId()) {
        case android.R.id.home:
            Activities.home(this);
            return true;
        default:
            // do nothing
        }

        return super.onOptionsItemSelected(item);
    }


}

@@ -74,52 +74,112 @@
 le;%0A
+%0A
 import 
-android.preference.PreferenceActivity
+com.actionbarsherlock.app.SherlockPreferenceActivity;%0Aimport com.actionbarsherlock.view.MenuItem
 ;%0A%0Ap
@@ -219,16 +219,24 @@
 extends 
+Sherlock
 Preferen
@@ -628,16 +628,23 @@
      get
+Support
 ActionBa
@@ -746,21 +746,8 @@
 ted(
-android.view.
 Menu

use ABS base class