-
Notifications
You must be signed in to change notification settings - Fork 121
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
Show Toast when offline in Download #2990
base: master
Are you sure you want to change the base?
Conversation
0867b76
to
4390a14
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2990 +/- ##
============================================
- Coverage 63.55% 63.49% -0.07%
- Complexity 1242 1243 +1
============================================
Files 267 267
Lines 6506 6519 +13
Branches 911 915 +4
============================================
+ Hits 4135 4139 +4
- Misses 1785 1793 +8
- Partials 586 587 +1
|
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.
Are you planning to add some unit tests for this?
in second pr, for complete testing. |
private val _showPopupEvent = MutableSharedFlow<Boolean>() | ||
val showPopupEvent = _showPopupEvent.asSharedFlow() |
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 we rename this to networkUnavailableEvent
? Also, we aren't using the value of the emitted value. So the type can be changed to Nil
.
val isConnected = networkManager.isNetworkConnected() | ||
if (!isConnected) { |
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.
Let's inline this
Towards #662
This is a part 1 PR where we are showing a popup if device is not connected while trying to download the offline imagery.
Part 2 will be
The part 2 will close other tickets as well where we need to build download cancel feature,
@shobhitagarwal1612 PTAL?