Skip to content

Commit

Permalink
Merge pull request #98 from Trendyol/toolbar/revert-some-debounced-cl…
Browse files Browse the repository at this point in the history
…ick-listeners

Revert some debounced click listeners to not disrupt as-is behavior
  • Loading branch information
turkergoksu authored Jul 28, 2022
2 parents 91cb08b + f80124b commit ab0f9e8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/ComponentVersions.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
object ComponentVersions {

const val toolbarVersion = "2.0.7"
const val toolbarVersion = "2.0.8"
const val suggestionInputViewVersion = "1.3.0"
const val ratingBarVersion = "1.0.2"
const val imageSliderVersion = "1.0.8"
Expand Down
2 changes: 1 addition & 1 deletion libraries/card-input-view/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<img src="https://raw.githubusercontent.com/Trendyol/android-ui-components/master/images/card-input-view-1.png" width="240"/> <img src="https://raw.githubusercontent.com/Trendyol/android-ui-components/master/images/card-input-view-2.png" width="240"/>

$cardInputViewVersion = card-input-view-1.2.1 [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
$cardInputViewVersion = card-input-view-1.2.2 [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

## CardInputView
CardInputView is custom view for Master or Visa debit/credit card inputs. It can verify card number, expire date and CVV for you.
Expand Down
2 changes: 1 addition & 1 deletion libraries/toolbar/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="https://raw.githubusercontent.com/Trendyol/android-ui-components/master/images/toolbar-1.png" width="240"/>

$toolbarVersion = toolbar-2.0.6 [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
$toolbarVersion = toolbar-2.0.8 [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

## Toolbar
Toolbar is alternative implementation of Toolbar component on Android.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ class Toolbar : ConstraintLayout {
init {
inflate(context, R.layout.view_toolbar, this)

imageLeft.setDebouncedOnClickListener { leftImageClickListener?.invoke() }
imageMiddle.setDebouncedOnClickListener { middleImageClickListener?.invoke() }
imageLeft.setOnClickListener { leftImageClickListener?.invoke() }
imageMiddle.setOnClickListener { middleImageClickListener?.invoke() }
imageRight.setDebouncedOnClickListener { rightImageClickListener?.invoke() }
textLeftUp.setDebouncedOnClickListener { upperLeftTextClickListener?.invoke() }
textLeftDown.setDebouncedOnClickListener { lowerLeftTextClickListener?.invoke() }
textMiddle.setDebouncedOnClickListener { middleTextClickListener?.invoke() }
textRightUp.setDebouncedOnClickListener { upperRightTextClickListener?.invoke() }
textRightDown.setDebouncedOnClickListener { lowerRightTextClickListener?.invoke() }
textLeftUp.setOnClickListener { upperLeftTextClickListener?.invoke() }
textLeftDown.setOnClickListener { lowerLeftTextClickListener?.invoke() }
textMiddle.setOnClickListener { middleTextClickListener?.invoke() }
textRightUp.setOnClickListener { upperRightTextClickListener?.invoke() }
textRightDown.setOnClickListener { lowerRightTextClickListener?.invoke() }
}

private fun readFromAttributes(attrs: AttributeSet?, defStyleAttr: Int = 0) {
Expand Down

0 comments on commit ab0f9e8

Please sign in to comment.