remove underscore

This commit is contained in:
Phillip Thelen 2018-07-24 11:32:35 +02:00
parent b8f73373b2
commit 263dbde389
2 changed files with 1 additions and 4 deletions

View file

@ -85,8 +85,6 @@ dependencies {
transitive = true
}
implementation 'fr.avianey.com.viewpagerindicator:library:2.4.1@aar'
// lodash/underscore
implementation 'com.github.javadev:underscore:1.34'
//RxJava
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
implementation 'io.reactivex.rxjava2:rxjava:2.1.16'

View file

@ -5,7 +5,6 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.CheckBox
import com.github.underscore.U
import com.habitrpg.android.habitica.R
import com.habitrpg.android.habitica.extensions.notNull
import com.habitrpg.android.habitica.models.social.Group
@ -68,7 +67,7 @@ class ChallengesFilterRecyclerViewAdapter(entries: Collection<Group>) : Recycler
fun selectAll(groupsToCheck: List<Group>) {
for (h in holderList) {
h.checkbox.isChecked = U.find(groupsToCheck) { g -> h.group?.id == g.id }.isPresent
h.checkbox.isChecked =groupsToCheck.find { g -> h.group?.id == g.id } != null
}
}