another shared prefs fix

This commit is contained in:
Nathan Freitas 2013-08-23 16:46:48 -04:00
parent e632b3b04f
commit abe1788648
2 changed files with 1 additions and 3 deletions

View File

@ -16,7 +16,7 @@ public class OnBootReceiver extends BroadcastReceiver {
if (intent.getAction() != null
&& intent.getAction().equals("android.intent.action.BOOT_COMPLETED"))
{
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
SharedPreferences prefs = TorService.getSharedPrefs(context.getApplicationContext());
boolean startOnBoot = prefs.getBoolean("pref_start_boot",false);

View File

@ -248,8 +248,6 @@ public class TorService extends Service implements TorServiceConstants, TorConst
super.onStart(intent, startId);
_torInstance = this;
android.os.Debug.waitForDebugger();
initTorPaths();