Skip to content

Commit

Permalink
some small bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelonion committed Jan 28, 2024
1 parent 6b9dce1 commit eb5b835
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/ani/dantotsu/media/SearchActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit eb5b835

Please sign in to comment.