Skip to content

PagedList is now deprecated leading to crash in the latest implementation(androidx.paging:paging-runtime:3.0.0) #1942

@jagadishnallappa

Description

@jagadishnallappa

Hi,

With the latest implementation (androidx.paging:paging-runtime:3.0.0), FirestorePagingAdapter crashes with the following error

"Attempt to access dataSource on a PagedList that was instantiated with a InitialPagingSource instead of a DataSource"

Further investigation in the IDE,

  1. PagedList is deprecated.

And public val dataSource: DataSource<*, T> in the file PagedList.kt is throwing the following exception:
"Attempt to access dataSource on a PagedList that was instantiated with a " +
"${pagingSource::class.java.simpleName} instead of a DataSource"

For now, I can continue keeping the implements version implementation 'androidx.paging:paging-runtime:2.1.2' instead of implementation(androidx.paging:paging-runtime:3.0.0) to prevent this from bothering me(crashing). But however, I notice that the latest implementation(though in the alpha stage) brings in some drastic changes.

Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions