mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
stop loading images on pause
This commit is contained in:
parent
ce54693775
commit
638f4b4d45
2 changed files with 4 additions and 0 deletions
|
@ -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 a new issue