diff --git a/res/menu/main.xml b/res/menu/main.xml
index 9dbf9a2a..7870c323 100755
--- a/res/menu/main.xml
+++ b/res/menu/main.xml
@@ -22,31 +22,42 @@
diff --git a/src/org/torproject/android/Orbot.java b/src/org/torproject/android/Orbot.java
index bdad7ae3..3a584876 100644
--- a/src/org/torproject/android/Orbot.java
+++ b/src/org/torproject/android/Orbot.java
@@ -12,7 +12,6 @@ import org.torproject.android.settings.ProcessSettingsAsyncTask;
import org.torproject.android.settings.SettingsPreferences;
import org.torproject.android.wizard.ChooseLocaleWizardActivity;
-import android.app.Activity;
import android.app.AlertDialog;
import android.app.NotificationManager;
import android.content.ComponentName;
@@ -36,9 +35,6 @@ import android.text.Layout;
import android.text.method.ScrollingMovementMethod;
import android.util.Log;
import android.view.LayoutInflater;
-import android.view.Menu;
-import android.view.MenuInflater;
-import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnLongClickListener;
@@ -49,7 +45,13 @@ import android.widget.SlidingDrawer;
import android.widget.TextView;
import android.widget.Toast;
-public class Orbot extends Activity implements TorConstants, OnLongClickListener
+import com.actionbarsherlock.app.SherlockActivity;
+import com.actionbarsherlock.view.Menu;
+import com.actionbarsherlock.view.MenuInflater;
+import com.actionbarsherlock.view.MenuItem;
+
+
+public class Orbot extends SherlockActivity implements TorConstants, OnLongClickListener
{
/* Useful UI bits */
private TextView lblStatus = null; //the main text display widget
@@ -161,9 +163,10 @@ public class Orbot extends Activity implements TorConstants, OnLongClickListener
* Create the UI Options Menu (non-Javadoc)
* @see android.app.Activity#onCreateOptionsMenu(android.view.Menu)
*/
+ @Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
- MenuInflater inflater = getMenuInflater();
+ MenuInflater inflater = getSupportMenuInflater();
inflater.inflate(R.menu.main, menu);
mItemOnOff = menu.getItem(0);
diff --git a/src/org/torproject/android/settings/SettingsPreferences.java b/src/org/torproject/android/settings/SettingsPreferences.java
index 46a2211e..fd857fd0 100644
--- a/src/org/torproject/android/settings/SettingsPreferences.java
+++ b/src/org/torproject/android/settings/SettingsPreferences.java
@@ -11,6 +11,8 @@ import org.torproject.android.TorConstants;
import org.torproject.android.service.TorServiceUtils;
import org.torproject.android.service.TorTransProxy;
+import com.actionbarsherlock.app.SherlockPreferenceActivity;
+
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
@@ -27,7 +29,7 @@ import android.widget.Toast;
public class SettingsPreferences
- extends PreferenceActivity implements OnPreferenceClickListener {
+ extends SherlockPreferenceActivity implements OnPreferenceClickListener {
private CheckBoxPreference prefCBTransProxy = null;
private CheckBoxPreference prefcBTransProxyAll = null;