-
Notifications
You must be signed in to change notification settings - Fork 19
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
base: master
Are you sure you want to change the base?
Feature/new feature #12
Conversation
…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.
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() |
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.
Can you remove that Snackbar? When I am trying to open my app without internet I am not able to see any Snackbar.
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.
i have removed that snackbar tangobeee now the notification should work to stop music plsu the toast messages without any unnecessary snackbar code
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.