From d3511d4be120f84cb302456b0992dbc003d4aa80 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 16 Oct 2014 17:48:30 -0700 Subject: [PATCH] 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 --- api/current.txt | 1 - core/java/android/os/Build.java | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/api/current.txt b/api/current.txt index 953cfe0f0892f..fe0c2096dce06 100644 --- a/api/current.txt +++ b/api/current.txt @@ -21398,7 +21398,6 @@ package android.os { field public static final int JELLY_BEAN_MR2 = 18; // 0x12 field public static final int KITKAT = 19; // 0x13 field public static final int KITKAT_WATCH = 20; // 0x14 - field public static final int L = 21; // 0x15 field public static final int LOLLIPOP = 21; // 0x15 } diff --git a/core/java/android/os/Build.java b/core/java/android/os/Build.java index ee360125b4b14..24cdd77fa3ccc 100644 --- a/core/java/android/os/Build.java +++ b/core/java/android/os/Build.java @@ -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 { *
  • {@link android.content.Context#bindService Context.bindService} now * requires an explicit Intent, and will throw an exception if given an implicit * Intent.
  • + *
  • {@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.
  • + *
  • {@link android.os.Message} will validate that a message is not currently + * in use when it is recycled.
  • + *
  • Hardware accelerated drawing in windows will be enabled automatically + * in most places.
  • + *
  • {@link android.widget.Spinner} throws an exception if attaching an + * adapter with more than one item type.
  • + *
  • 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).
  • + *
  • 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.
  • + *
  • A {@link android.service.dreams.DreamService} must require the + * {@link android.Manifest.permission#BIND_DREAM_SERVICE} permission to be usable.
  • * */ public static final int LOLLIPOP = 21;