Fixed ktlint errors

This commit is contained in:
Nite 2020-11-23 14:02:18 +01:00
parent 7dcaf5b1a6
commit b3db46b1ab
No known key found for this signature in database
GPG Key ID: 1D1AD59B1C6386C1
1 changed files with 2 additions and 2 deletions

View File

@ -30,12 +30,12 @@ import android.widget.RelativeLayout
import android.widget.TextView import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView import androidx.recyclerview.widget.RecyclerView
import com.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView.SectionedAdapter import com.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView.SectionedAdapter
import java.text.Collator
import org.moire.ultrasonic.R import org.moire.ultrasonic.R
import org.moire.ultrasonic.data.ActiveServerProvider.Companion.isOffline import org.moire.ultrasonic.data.ActiveServerProvider.Companion.isOffline
import org.moire.ultrasonic.domain.Artist import org.moire.ultrasonic.domain.Artist
import org.moire.ultrasonic.domain.MusicDirectory import org.moire.ultrasonic.domain.MusicDirectory
import org.moire.ultrasonic.util.ImageLoader import org.moire.ultrasonic.util.ImageLoader
import java.text.Collator
/** /**
* Creates a Row in a RecyclerView which contains the details of an Artist * Creates a Row in a RecyclerView which contains the details of an Artist
@ -54,7 +54,7 @@ class ArtistRowAdapter(
* Sets the data to be displayed in the RecyclerView * Sets the data to be displayed in the RecyclerView
*/ */
fun setData(data: List<Artist>) { fun setData(data: List<Artist>) {
artistList = data.sortedWith(compareBy(Collator.getInstance()){ t -> t.name }) artistList = data.sortedWith(compareBy(Collator.getInstance()) { t -> t.name })
notifyDataSetChanged() notifyDataSetChanged()
} }