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 if (intent.getAction() != null
&& intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) && 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); boolean startOnBoot = prefs.getBoolean("pref_start_boot",false);

View File

@ -249,8 +249,6 @@ public class TorService extends Service implements TorServiceConstants, TorConst
_torInstance = this; _torInstance = this;
android.os.Debug.waitForDebugger();
initTorPaths(); initTorPaths();
IntentFilter mNetworkStateFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION); IntentFilter mNetworkStateFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);