Skip to content

Commit

Permalink
Changed compile version to API 28 and updated compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jsDCT committed Jul 23, 2019
1 parent 8f573b1 commit 6e65c8b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -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"
}
Expand All @@ -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'
}
18 changes: 9 additions & 9 deletions sublimepickerlibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ private void initializePopulateMethod() {
try {
mPopulateMethod = ViewPager.class.getDeclaredMethod("populate", (Class[]) null);
mPopulateMethod.setAccessible(true);
Log.e("NIECO", "Found method");
} catch (NoSuchMethodException nsme) {
nsme.printStackTrace();
Log.e("NIECO", "NoSuchMethodException " + nsme.getMessage());
}

mAlreadyTriedAccessingMethod = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -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],
Expand Down

0 comments on commit 6e65c8b

Please sign in to comment.