Skip to content

Commit 50f27a4

Browse files
authored
Merge pull request #20393 from wordpress-mobile/issue/20343-fix-orientation-change-issue-on-stats
Fix the stats screen issue that occurs with changing orientation
2 parents a25f785 + 6cc82f0 commit 50f27a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/StatsListViewModel.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ abstract class StatsListViewModel(
157157
}
158158

159159
fun start() {
160-
if (!isInitialized) {
160+
if (isInitialized) {
161+
mutableUiSourceAdded.call()
162+
} else {
161163
isInitialized = true
162164
setUiLiveData()
163165
launch {

0 commit comments

Comments
 (0)