diff options
| author | 2016-06-08 18:27:59 +0000 | |
|---|---|---|
| committer | 2016-06-08 18:28:00 +0000 | |
| commit | afaa1e9db1bb76104dab1741e9a80f19050deb16 (patch) | |
| tree | 5e77399d33a4baa7630a4793566744c606d8bd28 | |
| parent | e1451c4e308c3dbdfc629bc4c6c2e0a94b4a8065 (diff) | |
| parent | 4b2b615669edf0cb3e2b1dbf3116281477e1f0b7 (diff) | |
Merge "Return correct default theme on API >= 24" into nyc-dev
| -rw-r--r-- | core/java/android/content/res/Resources.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/content/res/Resources.java b/core/java/android/content/res/Resources.java index 93fe73b06e89..54a59680fe4d 100644 --- a/core/java/android/content/res/Resources.java +++ b/core/java/android/content/res/Resources.java @@ -126,9 +126,9 @@ public class Resources { * Returns the most appropriate default theme for the specified target SDK version. * <ul> * <li>Below API 11: Gingerbread - * <li>APIs 11 thru 14: Holo - * <li>APIs 14 thru XX: Device default dark - * <li>API XX and above: Device default light with dark action bar + * <li>APIs 12 thru 14: Holo + * <li>APIs 15 thru 23: Device default dark + * <li>APIs 24 and above: Device default light with dark action bar * </ul> * * @param curTheme The current theme, or 0 if not specified. @@ -156,7 +156,7 @@ public class Resources { if (targetSdkVersion < Build.VERSION_CODES.ICE_CREAM_SANDWICH) { return holo; } - if (targetSdkVersion < Build.VERSION_CODES.CUR_DEVELOPMENT) { + if (targetSdkVersion < Build.VERSION_CODES.N) { return dark; } return deviceDefault; |