mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-27 16:55:03 +01:00
avoid running 2 media fetching asynctasks
This commit is contained in:
parent
8b9810bab9
commit
3f72652ed8
@ -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 New Issue
Block a user