diff --git a/README.md b/README.md index 6dae26e..8b41fbe 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/sspulltorefresh/src/main/java/com/simform/refresh/SSPullToRefreshLayout.kt b/sspulltorefresh/src/main/java/com/simform/refresh/SSPullToRefreshLayout.kt index 13aa134..8a49b34 100644 --- a/sspulltorefresh/src/main/java/com/simform/refresh/SSPullToRefreshLayout.kt +++ b/sspulltorefresh/src/main/java/com/simform/refresh/SSPullToRefreshLayout.kt @@ -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) @@ -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)