From 4b2b615669edf0cb3e2b1dbf3116281477e1f0b7 Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Wed, 8 Jun 2016 11:45:15 -0400 Subject: Return correct default theme on API >= 24 This method was broken, but it was returning light theme on N preview builds, so we'll keep it consistent as we move into N release. Bug: 29192690 Change-Id: I0d16abbe48756070dcd653c39d0da4124ea66b28 --- core/java/android/content/res/Resources.java | 8 ++++---- 1 file 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. * * * @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; -- cgit v1.2.3-59-g8ed1b