Skip to content

Commit

Permalink
Merge pull request #32 from SimformSolutionsPvtLtd/develop
Browse files Browse the repository at this point in the history
Develop to Main

LGTM.
  • Loading branch information
yashwantgowla-simform authored Apr 3, 2023
2 parents 24f8256 + 0d1acff commit 471e19c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ dependencyResolutionManagement {

```groovy
dependencies {
implementation 'com.github.SimformSolutionsPvtLtd:SSPullToRefresh:1.5'
implementation 'com.github.SimformSolutionsPvtLtd:SSPullToRefresh:1.5.1'
}
```
2. Wrap your refreshing view (RecyclerView, listView etc..) with SSPullToRefreshLayout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ class SSPullToRefreshLayout(context: Context?, attrs: AttributeSet? = null) :
// init mRefreshView
mRefreshView = DefaultAnimationView(getContext())
(mRefreshView as SSLottieAnimationView).setAnimation(mLottieAnimationAssetFileName)
mRefreshView.visibility = GONE
val layoutParams = LayoutParams(mRefreshViewSize, mRefreshViewSize)
addView(mRefreshView, layoutParams)

Expand Down Expand Up @@ -206,7 +205,6 @@ class SSPullToRefreshLayout(context: Context?, attrs: AttributeSet? = null) :
if (mRefreshView.parent != null) {
(mRefreshView.parent as ViewGroup).removeView(mRefreshView)
}
refreshView.visibility = GONE
addView(refreshView, mRefreshLayoutParams)
if (refreshView !is RefreshCallbacks) throw ClassCastException("RefreshView must implement RefreshCallbacks")
if (refreshView is SSLottieAnimationView) refreshView.setAnimation(mLottieAnimationAssetFileName)
Expand Down

0 comments on commit 471e19c

Please sign in to comment.