some small bugfixes
This commit is contained in:
parent
6b9dce10cf
commit
eb5b83564f
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue