Commit 0468fea1 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Rename Sorting interface to SortModule

parent 3a1b9e1a
......@@ -36,7 +36,7 @@ import org.videolan.vlc.util.*
import org.videolan.vlc.viewmodels.SortableModel
abstract class MedialibraryProvider<T : MediaLibraryItem>(val context: Context, val scope: SortableModel) : HeaderProvider(),
ISortModel
SortModule
{
private val settings = Settings.getInstance(context)
protected val medialibrary = AbstractMedialibrary.getInstance()
......
......@@ -235,7 +235,7 @@ interface RefreshModel {
fun refresh()
}
interface ISortModel {
interface SortModule {
fun sort(sort: Int)
fun canSortByName() = true
fun canSortByFileNameName() = false
......
......@@ -2,12 +2,12 @@ package org.videolan.vlc.viewmodels
import android.content.Context
import org.videolan.medialibrary.interfaces.AbstractMedialibrary
import org.videolan.vlc.util.ISortModel
import org.videolan.vlc.util.RefreshModel
import org.videolan.vlc.util.Settings
import org.videolan.vlc.util.SortModule
abstract class SortableModel(protected val context: Context): ScopedModel(), RefreshModel,
ISortModel
SortModule
{
private val settings = Settings.getInstance(context)
protected open val sortKey : String = this.javaClass.simpleName
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment