summaryrefslogtreecommitdiff
path: root/core/java/android/app/NotificationManager.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-08-17 23:33:56 -0700
committerDianne Hackborn <hackbod@google.com>2009-08-18 13:59:27 -0700
commitd8a43f61680bacf0d4b52a03ff3c7a07307377fc (patch)
tree298808433ea17b6842b87424629fa1869478ed94 /core/java/android/app/NotificationManager.java
parent30c0b83490d856c1cd82441c8e2d800a88927237 (diff)
Fix issue #2047139: Remove Service.setForeground()
This API is becoming seriously abused, so now it is deprecated and has become a no-op. As an alternative, there is now a new API that allows you to make a service be in the foreground but requires providing a persistent notification to go along with this state, allowing the user to know about and control it.
Diffstat (limited to 'core/java/android/app/NotificationManager.java')
-rw-r--r--core/java/android/app/NotificationManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/app/NotificationManager.java b/core/java/android/app/NotificationManager.java
index 39edab70d141..7b51fdf9b5cb 100644
--- a/core/java/android/app/NotificationManager.java
+++ b/core/java/android/app/NotificationManager.java
@@ -61,7 +61,8 @@ public class NotificationManager
private static INotificationManager sService;
- static private INotificationManager getService()
+ /** @hide */
+ static public INotificationManager getService()
{
if (sService != null) {
return sService;