From 3a036551c34b2f042a7a771abf4d658b82755418 Mon Sep 17 00:00:00 2001
From: akwizgran <akwizgran@users.sourceforge.net>
Date: Wed, 5 Feb 2014 12:07:06 +0000
Subject: [PATCH] Remove the service from the foreground before exiting.

---
 briar-android/src/org/briarproject/android/BriarService.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/briar-android/src/org/briarproject/android/BriarService.java b/briar-android/src/org/briarproject/android/BriarService.java
index 9e42fefe53..5b827bfd5a 100644
--- a/briar-android/src/org/briarproject/android/BriarService.java
+++ b/briar-android/src/org/briarproject/android/BriarService.java
@@ -100,6 +100,7 @@ public class BriarService extends RoboService {
 	public void onDestroy() {
 		super.onDestroy();
 		if(LOG.isLoggable(INFO)) LOG.info("Destroyed");
+		stopForeground(true);
 		// Stop the services in a background thread
 		new Thread() {
 			@Override
-- 
GitLab