another shared prefs fix
This commit is contained in:
parent
e632b3b04f
commit
abe1788648
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue