diff --git a/app/build.gradle b/app/build.gradle index 7cf72c6..0083cc2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,13 +1,13 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 27 - buildToolsVersion "28.0.2" + compileSdkVersion 28 + buildToolsVersion "28.0.3" defaultConfig { applicationId "com.appeaser.sublimepicker" minSdkVersion 14 - targetSdkVersion 27 + targetSdkVersion 28 versionCode 5 versionName "1.4" } @@ -22,5 +22,5 @@ android { dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation project(':sublimepickerlibrary') - implementation 'com.android.support:appcompat-v7:27.1.1' + implementation 'com.android.support:appcompat-v7:28.0.0' } diff --git a/sublimepickerlibrary/build.gradle b/sublimepickerlibrary/build.gradle index 698c4d4..744e696 100644 --- a/sublimepickerlibrary/build.gradle +++ b/sublimepickerlibrary/build.gradle @@ -36,12 +36,12 @@ ext { } android { - compileSdkVersion 27 - buildToolsVersion "28.0.2" + compileSdkVersion 28 + buildToolsVersion "28.0.3" defaultConfig { minSdkVersion 14 - targetSdkVersion 27 + targetSdkVersion 28 versionCode 4 versionName "2.1.2" } @@ -53,17 +53,17 @@ android { } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_7 - targetCompatibility JavaVersion.VERSION_1_7 + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'com.android.support:appcompat-v7:27.1.1' - implementation 'com.android.support:support-v4:27.1.1' - implementation 'com.android.support:gridlayout-v7:27.1.1' - implementation 'com.android.support:support-annotations:27.1.1' + implementation 'com.android.support:appcompat-v7:28.0.0' + implementation 'com.android.support:support-v4:28.0.0' + implementation 'com.android.support:gridlayout-v7:28.0.0' + implementation 'com.android.support:support-annotations:28.0.0' } apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle' diff --git a/sublimepickerlibrary/src/main/java/com/appeaser/sublimepickerlibrary/timepicker/RadialTimePickerView.java b/sublimepickerlibrary/src/main/java/com/appeaser/sublimepickerlibrary/timepicker/RadialTimePickerView.java index 8bffc1c..4126b81 100644 --- a/sublimepickerlibrary/src/main/java/com/appeaser/sublimepickerlibrary/timepicker/RadialTimePickerView.java +++ b/sublimepickerlibrary/src/main/java/com/appeaser/sublimepickerlibrary/timepicker/RadialTimePickerView.java @@ -701,7 +701,7 @@ private void drawMinutes(Canvas canvas, float alphaMod) { // Exclude the selector region, then draw minutes with no // activated states. - canvas.save(Canvas.CLIP_SAVE_FLAG); + canvas.save(); canvas.clipPath(mSelectorPath, Region.Op.DIFFERENCE); drawTextElements(canvas, mTextSize[MINUTES], mTypeface, mTextColor[MINUTES], mMinutesText, mOuterTextX[MINUTES], mOuterTextY[MINUTES], mPaint[MINUTES], @@ -710,7 +710,7 @@ private void drawMinutes(Canvas canvas, float alphaMod) { // Intersect the selector region, then draw minutes with only // activated states. - canvas.save(Canvas.CLIP_SAVE_FLAG); + canvas.save(); canvas.clipPath(mSelectorPath, Region.Op.INTERSECT); drawTextElements(canvas, mTextSize[MINUTES], mTypeface, mTextColor[MINUTES], mMinutesText, mOuterTextX[MINUTES], mOuterTextY[MINUTES], mPaint[MINUTES],