Skip to content

Commit

Permalink
Merge pull request #8 from erkutaras/develop
Browse files Browse the repository at this point in the history
revert infoButtonListener function
  • Loading branch information
erkutaras authored Nov 23, 2018
2 parents 294226c + b579832 commit ec4e0b6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ allprojects {
**Step 2.** Add the library dependency to your project build.gradle:
```
dependencies {
implementation 'com.github.erkutaras:StateLayout:1.0.8'
implementation 'com.github.erkutaras:StateLayout:1.0.9'
}
```

Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion 17
targetSdkVersion 27
versionCode 9
versionName "1.0.8"
versionCode 10
versionName "1.0.9"

vectorDrawables.useSupportLibrary = true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ class StateLayout @JvmOverloads constructor(context: Context,
return info()
}

fun infoButtonListener(onStateLayoutListener: OnStateLayoutListener?): StateLayout {
infoLayout?.findViewById<Button>(R.id.button_state_layout_info)?.setOnClickListener {
onStateLayoutListener?.onStateLayoutInfoButtonClick()
}
return info()
}

fun infoButtonListener(block:() -> Unit) {
infoLayout?.findViewById<Button>(R.id.button_state_layout_info)?.setOnClickListener {
block.invoke()
Expand Down

0 comments on commit ec4e0b6

Please sign in to comment.