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

Data from Room database is not showing properly when you change sql #8

Open
Ayush-75 opened this issue Sep 28, 2024 · 0 comments
Open

Comments

@Ayush-75
Copy link

when I changed sqlite query to ORDER BY id DESC its not showing data in Descending order its shows in Ascending order
but when I used old method to inflate Menu with oncreateOptionMenu its works properly fine but when I used new MenuHost to inflate its not working properly

@query("SELECT * FROM todo_table ORDER BY id DESC")
fun getAllData(): LiveData<List>

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

No branches or pull requests

1 participant