Skip to content

Commit

Permalink
Merge pull request #40 from ImaginativeShohag/dev
Browse files Browse the repository at this point in the history
Version 2.0.1 Released
  • Loading branch information
ImaginativeShohag authored May 22, 2021
2 parents 0e5e616 + 1bc7ec7 commit 353d7c8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Change Log
==========

## Version 2.0.0 *(2021-05-22)* 🚀
## Version 2.0.0, 2.0.1 *(2021-05-22)* 🚀

* 🆕 Previous boring custom layout system removed. And view-binding supported custom layout system added. See `CarouselListener` in the sample app for details. 🎉
* 🆕 The carousel is now supported Infinite ∞ looping (Infinite Carousel) 🥳! It's default now. You can disable it by setting `infiniteCarousel` to `false`.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies {
// Optional: Circle Indicator (To fix the xml preview "Missing classes" error)
implementation 'me.relex:circleindicator:2.1.6'
implementation 'org.imaginativeworld.whynotimagecarousel:whynotimagecarousel:2.0.0'
implementation 'org.imaginativeworld.whynotimagecarousel:whynotimagecarousel:2.0.1'
}
```

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ kotlin.code.style=official
# ----------------
GROUP=org.imaginativeworld.whynotimagecarousel
POM_ARTIFACT_ID=whynotimagecarousel
VERSION_NAME=2.0.0
VERSION_NAME=2.0.1
# ----------------
POM_NAME=Why Not! Image Carousel!
POM_DESCRIPTION=An easy, super simple and customizable image carousel view for Android.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,10 @@ class ImageCarousel(
if (autoPlay) {
initAutoPlay()
}
}

@OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
private fun onResumeCheckForStartPositionForInfiniteCarousel() {
if (infiniteCarousel && !isCarouselCentered && dataSize != 0) {
initStartPositionForInfiniteCarousel()
}
Expand Down Expand Up @@ -1091,6 +1094,8 @@ class ImageCarousel(
0
)
}

isCarouselCentered = true
}
}
}
Expand Down

0 comments on commit 353d7c8

Please sign in to comment.