Fix:port/android:Revert r4975 due to incomplete commit.
[profile/ivi/navit.git] / navit / navit / android / src / org / navitproject / navit / Navit.java
index ae156a9..cac593e 100644 (file)
@@ -277,7 +277,7 @@ public class Navit extends Activity
                // Setup a notification in the android notification bar, remove it in the exit() function\r
                NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\r
                Notification notification = new Notification(R.drawable.icon,"Navit is running",0);\r
-               notification.flags = Notification.FLAG_FOREGROUND_SERVICE;\r
+               notification.flags = Notification.FLAG_NO_CLEAR;\r
                PendingIntent appIntent = PendingIntent.getActivity(getApplicationContext(), 0, getIntent(), 0);\r
                notification.setLatestEventInfo(getApplicationContext(), "Navit running", "Navit still running", appIntent);\r
                nm.notify(R.string.app_name, notification);\r