diff options
author | jandegr <jandegr@users.noreply.github.com> | 2016-11-03 19:42:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-03 19:42:17 +0100 |
commit | bc09016a5bc5200d2de8abdfcf8f6c53170ddc56 (patch) | |
tree | 854ed4694caf91a8ef501bc0edc088540393069f | |
parent | f1ec8e38848ed656be7da7d95c8f5bb046e12a67 (diff) | |
download | navit-bc09016a5bc5200d2de8abdfcf8f6c53170ddc56.tar.gz |
Update Navit.java
-rw-r--r-- | navit/android/src/org/navitproject/navit/Navit.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/navit/android/src/org/navitproject/navit/Navit.java b/navit/android/src/org/navitproject/navit/Navit.java index a0c61bd72..c8578df07 100644 --- a/navit/android/src/org/navitproject/navit/Navit.java +++ b/navit/android/src/org/navitproject/navit/Navit.java @@ -301,7 +301,8 @@ public class Navit extends Activity NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); // Grab a handle to the NotificationManager
Notification NavitNotification = new Notification(R.drawable.ic_notify, getString(R.string.notification_ticker), System.currentTimeMillis()); // Create a new notification, with the text string to show when the notification first appears
PendingIntent appIntent = PendingIntent.getActivity(getApplicationContext(), 0, getIntent(), 0);
- NavitNotification.setLatestEventInfo(getApplicationContext(), "Navit", getString(R.string.notification_event_default), appIntent); // Set the text in the notification
+// FIXME : needs a fix for sdk 23
+// NavitNotification.setLatestEventInfo(getApplicationContext(), "Navit", getString(R.string.notification_event_default), appIntent); // Set the text in the notification
NavitNotification.flags|=Notification.FLAG_ONGOING_EVENT; // Ensure that the notification appears in Ongoing
nm.notify(R.string.app_name, NavitNotification); // Set the notification
|