Fixing infinite scroll trying to load more items when there are no more.

This commit is contained in:
Amine 2017-11-20 21:08:13 +01:00
parent 4a4dbacc95
commit ebf4d294a8
3 changed files with 6 additions and 2 deletions

View File

@ -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**
- Displaying the right number of items.

View File

@ -208,7 +208,7 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener {
else -> 0
}
if (lastVisibleItem === items.size && items.size <= maxItemNumber()) {
if (lastVisibleItem === items.size && items.size <= maxItemNumber() && maxItemNumber() >= itemsNumber) {
getElementsAccordingToTab(appendResults = true, offsetOverride = lastVisibleItem)
}

View File

@ -10,7 +10,7 @@ buildscript {
}
}
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"
// NOTE: Do not place your application dependencies here; they belong