mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
do not convert medium and dir arrays to strings
This commit is contained in:
parent
311f412c87
commit
3d089db697
2 changed files with 2 additions and 2 deletions
|
@ -323,7 +323,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||
fun gotDirectories(dirs: ArrayList<Directory>) {
|
||||
directories_holder.isRefreshing = false
|
||||
mIsGettingDirs = false
|
||||
if (dirs.toString() == mDirs.toString()) {
|
||||
if (dirs == mDirs) {
|
||||
return
|
||||
}
|
||||
mDirs = dirs
|
||||
|
|
|
@ -272,7 +272,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||
fun gotMedia(media: ArrayList<Medium>) {
|
||||
mIsGettingMedia = false
|
||||
media_holder.isRefreshing = false
|
||||
if (media.toString() == mMedia.toString()) {
|
||||
if (media == mMedia) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue