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

Fixes my site icon indeterminate progress #15958

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
-----
* [**] Login: improved error messages for login with self-hosted sites. [https://github.com/wordpress-mobile/WordPress-Android/pull/15919]
* [*] Reader: nested comments with missing parent are now hidden from the comment list [https://github.com/wordpress-mobile/WordPress-Android/pull/15993]
* [*] My Site: Fixes indeterminate progress bar in site icon when cancelling editing [https://github.com/wordpress-mobile/WordPress-Android/pull/15958]

19.3
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -636,13 +636,10 @@ class MySiteViewModel @Inject constructor(
analyticsTrackerWrapper.track(stat)
val imageUri = Uri.parse(iconUrl)?.let { UriWrapper(it) }
if (imageUri != null) {
selectedSiteRepository.showSiteIconProgressBar(true)
launch(bgDispatcher) {
val fetchMedia = wpMediaUtilsWrapper.fetchMediaToUriWrapper(imageUri)
if (fetchMedia != null) {
_onNavigation.postValue(Event(SiteNavigationAction.OpenCropActivity(fetchMedia)))
} else {
selectedSiteRepository.showSiteIconProgressBar(false)
}
}
}
Expand Down