|
|
|
|
@ -30,8 +30,6 @@ interface RowRepresentableDataSource: EditableDataSource, DisplayableDataSource, |
|
|
|
|
*/ |
|
|
|
|
fun viewTypeForPosition(position:Int): Int |
|
|
|
|
|
|
|
|
|
//TODO should be removed |
|
|
|
|
fun indexForRow(row: RowRepresentable): Int |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
@ -61,12 +59,6 @@ interface StaticRowRepresentableDataSource: RowRepresentableDataSource { |
|
|
|
|
throw IllegalStateException("Need to implement Data Source") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun indexForRow(row: RowRepresentable): Int { |
|
|
|
|
this.adapterRows()?.let { |
|
|
|
|
return it.indexOf(row) |
|
|
|
|
} |
|
|
|
|
throw IllegalStateException("Need to implement Data Source") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|