commit 2c59c8489bc6302f2417448d8fad519b3c0a423b Author: n8fr8 nathan@guardianproject.info 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@lists.torproject.org