stop loading images on pause

This commit is contained in:
tibbi 2017-02-27 22:14:24 +01:00
parent ce54693775
commit 638f4b4d45
2 changed files with 4 additions and 0 deletions

View File

@ -102,6 +102,8 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
super.onPause()
mCurrAsyncTask?.shouldStop = true
storeDirectories()
directories_holder.isRefreshing = false
mIsGettingDirs = false
}
override fun onDestroy() {

View File

@ -69,6 +69,8 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
override fun onPause() {
super.onPause()
mCurrAsyncTask?.shouldStop = true
mIsGettingMedia = false
media_holder.isRefreshing = false
}
private fun tryloadGallery() {