Skip to content

Commit

Permalink
Merge pull request #24 from haizo-code/v2
Browse files Browse the repository at this point in the history
v2.5.6
  • Loading branch information
haizo-code authored Jun 13, 2023
2 parents 961198a + 3578806 commit 836d529
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ allprojects {

```gradle
dependencies {
implementation 'com.github.haizo-code:recyclerview-general-adapter:v2.5.5'
implementation 'com.github.haizo-code:recyclerview-general-adapter:v2.5.6'
}
```

Expand Down
2 changes: 1 addition & 1 deletion generalAdapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'maven-publish'

var libVersion = "2.5.5"
var libVersion = "2.5.6"

android {
compileSdkVersion 33
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal abstract class BaseLoadMoreHelper {
protected var loadingListItem: ListItem = MockLoadingListItem()
private var mScrollListener: RecyclerView.OnScrollListener? = null
var isLoadingInProgress: Boolean = false
var currentPage = 1
var currentPage = 0
var nextPagePayload: String? = null

/**
Expand Down Expand Up @@ -79,7 +79,7 @@ internal abstract class BaseLoadMoreHelper {
abstract fun removeLoadMoreIfExists(commitCallback: Runnable? = null)

fun resetPage() {
currentPage = 1
currentPage = 0
}

private var lastTriggerTime: Long = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ abstract class LoadMoreAdapter internal constructor() : RecyclerView.Adapter<Bas
}

/**
* Reset the current page number to Page = 1
* Reset the current page number to Page = 0
*/
fun resetPageNumber() {
mLoadMoreHelper.resetPage()
Expand Down

0 comments on commit 836d529

Please sign in to comment.