summaryrefslogtreecommitdiff
path: root/core/java/android/widget/DayPickerView.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2017-05-17 17:53:07 -0600
committerJeff Sharkey <jsharkey@android.com>2017-05-17 17:53:38 -0600
commitf383c24749ae6bfcf8f8cee26fe7bc6897f7511c (patch)
tree790f3914661dcc52cc116e689745f0ce85b39226 /core/java/android/widget/DayPickerView.java
parentdc6da8b4df3502164c234fe95c141d1a93684419 (diff)
Unbreak even more APK 26 apps running on "O" preview/beta builds.
Bug: 38391358 Test: builds Change-Id: Ic48f9cb53da3ed8241e5d40d3096304ee4dfebd2
Diffstat (limited to 'core/java/android/widget/DayPickerView.java')
-rw-r--r--core/java/android/widget/DayPickerView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/widget/DayPickerView.java b/core/java/android/widget/DayPickerView.java
index be0967f162c4..cfd1445ea3f8 100644
--- a/core/java/android/widget/DayPickerView.java
+++ b/core/java/android/widget/DayPickerView.java
@@ -16,7 +16,7 @@
package android.widget;
-import static android.os.Build.VERSION_CODES.N_MR1;
+import static android.os.Build.VERSION_CODES.O;
import android.annotation.Nullable;
import android.content.Context;
@@ -302,7 +302,7 @@ class DayPickerView extends ViewGroup {
getTempCalendarForTime(timeInMillis);
final int targetSdkVersion = mContext.getApplicationInfo().targetSdkVersion;
- if (targetSdkVersion > N_MR1) {
+ if (targetSdkVersion >= O) {
if (mTempCalendar.before(mMinDate) || mTempCalendar.after(mMaxDate)) {
throw new IllegalArgumentException("timeInMillis must be between the values of "
+ "getMinDate() and getMaxDate()");