diff --git a/app/src/main/java/ani/dantotsu/media/SearchActivity.kt b/app/src/main/java/ani/dantotsu/media/SearchActivity.kt index e06e67c5d2..bc8341d4b6 100644 --- a/app/src/main/java/ani/dantotsu/media/SearchActivity.kt +++ b/app/src/main/java/ani/dantotsu/media/SearchActivity.kt @@ -156,8 +156,11 @@ class SearchActivity : AppCompatActivity() { } fun emptyMediaAdapter() { + searchTimer.cancel() + searchTimer.purge() mediaAdaptor.notifyItemRangeRemoved(0, model.searchResults.results.size) model.searchResults.results.clear() + progressAdapter.bar?.visibility = View.GONE } private var searchTimer = Timer()