AbolfaZlRezaEe / NMock

NMock is an application that you can use to mock your trips with fake locations. This application uses Google Map SDK and Neshan API for Map and location information.
22 stars 6 forks source link

Remove GPS request Snackbar in MockPlayerActivity when the user manually turns on it #3

Closed AbolfaZlRezaEe closed 2 years ago

AbolfaZlRezaEe commented 2 years ago

What's the problem or feature?

When the user wanna use MockPlayer and play a mock, if their location is off, we will show a snack bar that says:"Turn on the location to use this feature". but if we show this message to the user and the user turns on the location on the notification bar, we don't hide the snack bar after that.

For the solution we want to

We should listen to the changing state of location, and then when the user turns it on, we must hide the snack bar.

Works we should do during this task