Skip to content
Snippets Groups Projects
Commit f78f26a8 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Rename Sorting interface to SortModule

(cherry picked from commit 0468fea1)
parent cfa8dfad
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment