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);
|
||||||
|
|
||||||
|
|
|
@ -248,8 +248,6 @@ public class TorService extends Service implements TorServiceConstants, TorConst
|
||||||
super.onStart(intent, startId);
|
super.onStart(intent, startId);
|
||||||
|
|
||||||
_torInstance = this;
|
_torInstance = this;
|
||||||
|
|
||||||
android.os.Debug.waitForDebugger();
|
|
||||||
|
|
||||||
initTorPaths();
|
initTorPaths();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue