Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/contributions pagination #5

Conversation

ashishkumar468
Copy link

BugFixes Lazy Load Contributions
* Use PageId as primary Key
* show progress in CLF only when contributions are empty (graceful pagination)
* Migration 1_2

@Override
public void migrate(SupportSQLiteDatabase database) {
database.execSQL("DROP TABLE `contribution`");
database.execSQL("CREATE TABLE IF NOT EXISTS `contribution` ("
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ashishkumar468 Do we need to specify all the columns manually? Does room not pick the columns based on the model class.

PS: I am not very familiar with how room works.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it does, but for migration, we have to let it know exactly what it's supposed to do, as you can see we only have the DB as the parameter to work upon

@maskaravivek maskaravivek merged commit b9ed4e5 into maskaravivek:lazyContributions Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants