Skip to content

Commit

Permalink
[#3490] Update ScopeMob Higher-order functions and lambdas to use lam…
Browse files Browse the repository at this point in the history
…bdas
  • Loading branch information
mustafaozhan committed May 30, 2024
1 parent 2a1b9d3 commit 99a3dc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class SliderFragment : BaseVBFragment<FragmentSliderBinding>() {

btnNext.setOnClickListener {
getNextItem()
.whether { this < layouts.size }
.whether { it < layouts.size }
?.let { position -> viewPager.currentItem = position }
?: run {
bottomBarSeparator.isGone = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fun Activity.showDialog(
}
?.setCancelable(cancelable)
?.inCase(cancelable) {
setNegativeButton(getString(android.R.string.cancel), null)
it.setNegativeButton(getString(android.R.string.cancel), null)
}?.show()

fun Activity.showDialog(
Expand Down

0 comments on commit 99a3dc9

Please sign in to comment.