do not convert medium and dir arrays to strings

This commit is contained in:
tibbi 2017-01-04 21:29:26 +01:00
parent 311f412c87
commit 3d089db697
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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
}