-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Fixed crash and improve performance in AlbumsOverViewScreen #546
Fixed crash and improve performance in AlbumsOverViewScreen #546
Conversation
Hi @rahul31124, can you share what was the crash? |
Hi @07jasjeet,actually when we click on a album that has 0 song means nothing to play at that time the app crashes |
@rahul31124 I understand that but there might be some logs when the crash happened. Can you share those? We might need to fix these cases deeper in BP view-model rather than on call sites to avoid future crashes. |
@07jasjeet the logs i got E [AppErrors] null InputStream [CONTEXT service_id=254 ] |
Hi @07jasjeet, just following up since you asked for the logs. Let me know if my changes are enough or if anything else is needed. |
These logs look irrelevant, are you sure these are the ones? |
@07jasjeet,Yes i am getting these logs additionally i have added my logs to see the title as well as the size. |
Please add |
@rahul31124 have you joined meb irc channel? |
Yes I Now I have joined |
Hi @07jasjeet, In the Play Store version, I didn't notice any Telegram albums showing up, which suggests that Telegram may handle file indexing differently. Since this crash doesn't happen consistently, I think adding a null-safety check here would be a good precaution to prevent potential issues, especially with apps like Telegram that may have inconsistent metadata handling. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for now. Thanks for the contribution @rahul31124!
This PR fixes a crash that happened when clicking on an album with no songs by adding proper null safety Checks a Toast is now shown if the album has 0 songs,also improves performance by use of LazyColumn instead of Column
Before
Crash_Issue_Before.mp4
After
Crash_Issue_After.mp4