Fixing infinite scroll trying to load more items when there are no more.
This commit is contained in:
parent
4a4dbacc95
commit
ebf4d294a8
@ -1,3 +1,7 @@
|
|||||||
|
**1.5.4.14**
|
||||||
|
|
||||||
|
- Fixing infinite scroll trying to load more items when there are no more.
|
||||||
|
|
||||||
**1.5.4.13**
|
**1.5.4.13**
|
||||||
|
|
||||||
- Displaying the right number of items.
|
- Displaying the right number of items.
|
||||||
|
@ -208,7 +208,7 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener {
|
|||||||
else -> 0
|
else -> 0
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lastVisibleItem === items.size && items.size <= maxItemNumber()) {
|
if (lastVisibleItem === items.size && items.size <= maxItemNumber() && maxItemNumber() >= itemsNumber) {
|
||||||
getElementsAccordingToTab(appendResults = true, offsetOverride = lastVisibleItem)
|
getElementsAccordingToTab(appendResults = true, offsetOverride = lastVisibleItem)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.0.0'
|
classpath 'com.android.tools.build:gradle:3.0.1'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
Loading…
Reference in New Issue
Block a user