SDK only: hide the old L API version constant.

Also update the LOLLIPOP version constant to describe more things
that change when you target it.

Change-Id: I15e2c26a0f997ff2bfc8dd5076c827da7f42ee66
This commit is contained in:
Dianne Hackborn
2014-10-16 17:48:30 -07:00
parent 040d89bb0a
commit d3511d4be1
2 changed files with 19 additions and 1 deletions

View File

@ -554,6 +554,7 @@ public class Build {
/**
* Temporary until we completely switch to {@link #LOLLIPOP}.
* @hide
*/
public static final int L = 21;
@ -566,6 +567,24 @@ public class Build {
* <li> {@link android.content.Context#bindService Context.bindService} now
* requires an explicit Intent, and will throw an exception if given an implicit
* Intent.</li>
* <li> {@link android.app.Notification.Builder Notification.Builder} will
* not have the colors of their various notification elements adjusted to better
* match the new material design look.</li>
* <li> {@link android.os.Message} will validate that a message is not currently
* in use when it is recycled.</li>
* <li> Hardware accelerated drawing in windows will be enabled automatically
* in most places.</li>
* <li> {@link android.widget.Spinner} throws an exception if attaching an
* adapter with more than one item type.</li>
* <li> If the app is a launcher, the launcher will be available to the user
* even when they are using corporate profiles (which requires that the app
* use {@link android.content.pm.LauncherApps} to correctly populate its
* apps UI).</li>
* <li> Calling {@link android.app.Service#stopForeground Service.stopForeground}
* with removeNotification false will modify the still posted notification so that
* it is no longer forced to be ongoing.</li>
* <li> A {@link android.service.dreams.DreamService} must require the
* {@link android.Manifest.permission#BIND_DREAM_SERVICE} permission to be usable.</li>
* </ul>
*/
public static final int LOLLIPOP = 21;