Skip to content

Commit

Permalink
Merge pull request #6 from PRNDcompany/feature/draw-after-view
Browse files Browse the repository at this point in the history
  • Loading branch information
ted-prnd authored Jul 1, 2021
2 parents 9a67231 + 6c69fdd commit 7bb2709
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
api project(':stepprogressbar')
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation "androidx.core:core-ktx:1.5.0"
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.30'
ext.kotlin_version = '1.5.10'
repositories {
google()
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ kotlin.code.style=official

GROUP=kr.co.prnd
POM_ARTIFACT_ID=stepprogressbar
VERSION_NAME=1.0.0-alpha1
VERSION_NAME=1.0.1

POM_NAME=StepProgressBar
POM_PACKAGING=aar
Expand Down
2 changes: 1 addition & 1 deletion stepprogressbar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation "androidx.core:core-ktx:1.5.0"
}

apply plugin: "com.vanniktech.maven.publish"
5 changes: 3 additions & 2 deletions stepprogressbar/src/main/java/kr/co/prnd/StepProgressBar.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import android.util.AttributeSet
import android.view.View
import android.widget.LinearLayout
import androidx.annotation.CallSuper
import androidx.core.view.doOnPreDraw
import kr.co.prnd.stepprogressbar.R


Expand Down Expand Up @@ -80,7 +81,7 @@ class StepProgressBar @JvmOverloads constructor(
super.onMeasure(width, height)
if (needInitial) {
needInitial = false
makeStepView(width, height)
doOnPreDraw { makeStepView(width, height) }
}
}

Expand Down Expand Up @@ -130,4 +131,4 @@ class StepProgressBar @JvmOverloads constructor(
private const val DEFAULT_STEP = 0
}

}
}

0 comments on commit 7bb2709

Please sign in to comment.