Merge "Add documentation for MIN notification interaction with fg services." into oc-mr1-dev

am: 530cfc1db3

Change-Id: I2b1515dcc6acbffa43e1cfda1d1c8f68a077b1ad
This commit is contained in:
Dianne Hackborn
2017-08-03 00:36:08 +00:00
committed by android-build-merger

View File

@@ -204,7 +204,12 @@ public class NotificationManager {
public static final int IMPORTANCE_NONE = 0;
/**
* Min notification importance: only shows in the shade, below the fold.
* Min notification importance: only shows in the shade, below the fold. This should
* not be used with {@link Service#startForeground(int, Notification) Service.startForeground}
* since a foreground service is supposed to be something the user cares about so it does
* not make semantic sense to mark its notification as minimum importance. If you do this
* as of Android version {@link android.os.Build.VERSION_CODES#O}, the system will show
* a higher-priority notification about your app running in the background.
*/
public static final int IMPORTANCE_MIN = 1;