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

Feature/new feature #12

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

SlaydeSequeira
Copy link

hey tango bee i have followed up on my last pull request and i have added toast messages instead of snack bars and i have also added a notification to stop music directly outside the app aswell as i removed observers to reduce the battery consumption. I have tested everything this time and added images. Please test these features on a device Android 13 or greater for optimum results.
Screenshot 2024-10-03 100958
Screenshot 2024-10-03 100223
Screenshot 2024-10-03 100823

…ll as i removed observers ondestroy so even though the audio will play in the background no other part of the activity will me running thus reducing power consumption
…ll as i removed observers ondestroy so even though the audio will play in the background no other part of the activity will me running thus reducing power consumption
…ll as i removed observers ondestroy so even though the audio will play in the background no other part of the activity will me running thus reducing power consumption along with that i added a notification for user to stop the music from the notification bar itself. i also addeda few toast messages to tell the user what the issue is.
Comment on lines 66 to 71
noInternetLiveData.observe(this) { noInternet ->
if (noInternet) {
Snackbar.make(binding.root, getString(R.string.no_internet), Snackbar.LENGTH_INDEFINITE)
.setAction(getString(R.string.retry)) {
fetchData() // Retry fetching data
}.show()
Copy link
Owner

Choose a reason for hiding this comment

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

Can you remove that Snackbar? When I am trying to open my app without internet I am not able to see any Snackbar.

Copy link
Author

Choose a reason for hiding this comment

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

i have removed that snackbar tangobeee now the notification should work to stop music plsu the toast messages without any unnecessary snackbar code

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