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

[tor-commits] [orbot/master] ensure startForeground() is always immediately called



commit 2c59c8489bc6302f2417448d8fad519b3c0a423b
Author: n8fr8 <nathan@xxxxxxxxxxxxxxxxxxxx>
Date:   Fri Dec 14 14:42:59 2018 -0500

    ensure startForeground() is always immediately called
    - since we use startForegroundServce() we must ensure the receiving service complies!
---
 .../src/main/java/org/torproject/android/service/TorService.java       | 3 +++
 1 file changed, 3 insertions(+)

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 fec88b1f..64845b77 100644
--- a/orbotservice/src/main/java/org/torproject/android/service/TorService.java
+++ b/orbotservice/src/main/java/org/torproject/android/service/TorService.java
@@ -349,6 +349,9 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
      * @see android.app.Service#onStart(android.content.Intent, int)
      */
     public int onStartCommand(Intent intent, int flags, int startId) {
+
+        showToolbarNotification(getString(R.string.status_starting_up),NOTIFY_ID,R.drawable.ic_stat_tor);
+
         if (intent != null)
             exec (new IncomingIntentRouter(intent));
         else



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