avoid running 2 media fetching asynctasks

This commit is contained in:
tibbi 2017-12-19 12:20:03 +01:00
parent 8b9810bab9
commit 3f72652ed8

View File

@ -378,6 +378,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
}
mLoadedInitialPhotos = true
mCurrAsyncTask?.stopFetching()
mCurrAsyncTask = GetMediaAsynctask(applicationContext, mPath, mIsGetVideoIntent, mIsGetImageIntent, mShowAll) {
gotMedia(it)
}