[fenix] Closes https://github.com/mozilla-mobile/fenix/issues/24276: add documentation to classes marked as UndocumentedPublicClass by lint

pull/600/head
mike a 3 years ago committed by mergify[bot]
parent d7eed1046e
commit a2dbecb63f

@ -11,6 +11,9 @@ import androidx.recyclerview.widget.DiffUtil
import org.mozilla.fenix.selection.SelectionHolder
import org.mozilla.fenix.library.history.viewholders.HistoryListItemViewHolder
/**
* Adapter for the list of visited pages, that uses Paging 3 versions of the Paging library.
*/
class HistoryAdapter(
private val historyInteractor: HistoryInteractor,
) : PagingDataAdapter<History, HistoryListItemViewHolder>(historyDiffCallback),

@ -10,6 +10,10 @@ import androidx.paging.PagingState
import org.mozilla.fenix.components.history.HistoryDB
import org.mozilla.fenix.components.history.PagedHistoryProvider
/**
* PagingSource of History items, used in History Screen. It is the data source for the
* Flow<PagingData>, that provides HistoryAdapter with items to display.
*/
class HistoryDataSource(
private val historyProvider: PagedHistoryProvider
) : PagingSource<Int, History>() {

@ -148,6 +148,9 @@ class SitePermissionsViewHolder(
) :
RecyclerView.ViewHolder(view)
/**
* Adapter for the list of site permission exceptions.
*/
class ExceptionsAdapter(private val clickListener: View.OnClickListener) :
PagingDataAdapter<SitePermissions, SitePermissionsViewHolder>(diffCallback) {

Loading…
Cancel
Save