diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index f545f14fe..05efd993a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -323,7 +323,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { fun gotDirectories(dirs: ArrayList) { directories_holder.isRefreshing = false mIsGettingDirs = false - if (dirs.toString() == mDirs.toString()) { + if (dirs == mDirs) { return } mDirs = dirs diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index baf400c94..ea631f811 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -272,7 +272,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { fun gotMedia(media: ArrayList) { mIsGettingMedia = false media_holder.isRefreshing = false - if (media.toString() == mMedia.toString()) { + if (media == mMedia) { return }