mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +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>) {
|
fun gotDirectories(dirs: ArrayList<Directory>) {
|
||||||
directories_holder.isRefreshing = false
|
directories_holder.isRefreshing = false
|
||||||
mIsGettingDirs = false
|
mIsGettingDirs = false
|
||||||
if (dirs.toString() == mDirs.toString()) {
|
if (dirs == mDirs) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
mDirs = dirs
|
mDirs = dirs
|
||||||
|
|
|
@ -272,7 +272,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
||||||
fun gotMedia(media: ArrayList<Medium>) {
|
fun gotMedia(media: ArrayList<Medium>) {
|
||||||
mIsGettingMedia = false
|
mIsGettingMedia = false
|
||||||
media_holder.isRefreshing = false
|
media_holder.isRefreshing = false
|
||||||
if (media.toString() == mMedia.toString()) {
|
if (media == mMedia) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue