[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [orbot/master] another shared prefs fix
commit abe17886489885bd43951b04382f4a53cb6139bd
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
Date: Fri Aug 23 16:46:48 2013 -0400
another shared prefs fix
---
src/org/torproject/android/OnBootReceiver.java | 2 +-
src/org/torproject/android/service/TorService.java | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/org/torproject/android/OnBootReceiver.java b/src/org/torproject/android/OnBootReceiver.java
index 59de240..a5ca1d6 100644
--- a/src/org/torproject/android/OnBootReceiver.java
+++ b/src/org/torproject/android/OnBootReceiver.java
@@ -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);
diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java
index 9599d7f..9a92ba8 100644
--- a/src/org/torproject/android/service/TorService.java
+++ b/src/org/torproject/android/service/TorService.java
@@ -248,8 +248,6 @@ public class TorService extends Service implements TorServiceConstants, TorConst
super.onStart(intent, startId);
_torInstance = this;
-
- android.os.Debug.waitForDebugger();
initTorPaths();
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits