mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
avoid running 2 media fetching asynctasks
This commit is contained in:
parent
8b9810bab9
commit
3f72652ed8
1 changed files with 1 additions and 0 deletions
|
@ -378,6 +378,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||
}
|
||||
|
||||
mLoadedInitialPhotos = true
|
||||
mCurrAsyncTask?.stopFetching()
|
||||
mCurrAsyncTask = GetMediaAsynctask(applicationContext, mPath, mIsGetVideoIntent, mIsGetImageIntent, mShowAll) {
|
||||
gotMedia(it)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue