stop loading images on pause
This commit is contained in:
parent
ce54693775
commit
638f4b4d45
|
@ -102,6 +102,8 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||
super.onPause()
|
||||
mCurrAsyncTask?.shouldStop = true
|
||||
storeDirectories()
|
||||
directories_holder.isRefreshing = false
|
||||
mIsGettingDirs = false
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue