Skip to content

Commit

Permalink
Updates kotlin version deps & refactoring sample
Browse files Browse the repository at this point in the history
  • Loading branch information
lopspower committed Nov 29, 2019
1 parent 69d2f58 commit 471e1c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apply from: 'dependencies.gradle'

buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.3.61'
repositories {
google()
jcenter()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class MainActivity : AppCompatActivity() {
setContentView(R.layout.activity_main)

// Set Init progress with animation
circularProgressBar.setProgressWithAnimation(65f, 1000L) // =1s
circularProgressBar.setProgressWithAnimation(65f, 1000) // =1s

// Update circularProgressBar
seekBarProgress.onProgressChanged { circularProgressBar.progress = it }
Expand Down Expand Up @@ -71,7 +71,7 @@ class MainActivity : AppCompatActivity() {
}

private fun SwitchCompat.onCheckedChange(onCheckedChange: (Boolean) -> Unit) {
this.setOnCheckedChangeListener { _, isChecked -> onCheckedChange(isChecked) }
setOnCheckedChangeListener { _, isChecked -> onCheckedChange(isChecked) }
}
//endregion

Expand Down

0 comments on commit 471e1c6

Please sign in to comment.