Skip to content

Commit 638f4b4

Browse files
committed
stop loading images on pause
1 parent ce54693 commit 638f4b4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
102102
super.onPause()
103103
mCurrAsyncTask?.shouldStop = true
104104
storeDirectories()
105+
directories_holder.isRefreshing = false
106+
mIsGettingDirs = false
105107
}
106108

107109
override fun onDestroy() {

app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
6969
override fun onPause() {
7070
super.onPause()
7171
mCurrAsyncTask?.shouldStop = true
72+
mIsGettingMedia = false
73+
media_holder.isRefreshing = false
7274
}
7375

7476
private fun tryloadGallery() {

0 commit comments

Comments
 (0)