[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] make sure Tun2Socks native library gets loaded



commit 460f365b4ae73612c514ab5ebffa51800fb1e509
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
Date:   Thu Nov 3 12:17:55 2016 -0400

    make sure Tun2Socks native library gets loaded
---
 .../src/main/java/org/torproject/android/service/TorService.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/orbotservice/src/main/java/org/torproject/android/service/TorService.java b/orbotservice/src/main/java/org/torproject/android/service/TorService.java
index 0dab480..47af4ac 100644
--- a/orbotservice/src/main/java/org/torproject/android/service/TorService.java
+++ b/orbotservice/src/main/java/org/torproject/android/service/TorService.java
@@ -246,9 +246,11 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
         }
         
         mNotifyBuilder.setOngoing(Prefs.persistNotifications());
-        mNotifyBuilder.setPriority(Notification.PRIORITY_LOW);
-         mNotifyBuilder.setCategory(Notification.CATEGORY_SERVICE);
 
+         if (!Prefs.persistNotifications())
+            mNotifyBuilder.setPriority(Notification.PRIORITY_LOW);
+
+         mNotifyBuilder.setCategory(Notification.CATEGORY_SERVICE);
 
          mNotification = mNotifyBuilder.build();
         



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits