Commit 8defaed
CC-628: Refresh Customer Center UI after subscription cancellation (#3061)
## Summary
Fixes issue where Customer Center UI doesn't update after subscription
cancellation.
## Changes
- Add lifecycle-aware refresh when activity resumes after being paused
(when user returns from manage subscriptions screen)
- Add `isRefreshing` state to `CustomerCenterState.Success` to show
loading indicator during refresh
- Add `refreshCustomerCenter()` method that keeps content visible while
refreshing (shows subtle loading indicator instead of full loading
screen)
- Match iOS behavior: refresh when returning from manage subscriptions
screen
- Show subtle loading indicator and dim content during refresh (similar
to iOS)
## Testing
- [ ] Test that Customer Center refreshes when returning from Google
Play Store manage subscriptions screen
- [ ] Verify that cancelled subscriptions are shown correctly after
cancellation
- [ ] Verify that loading indicator appears during refresh
- [ ] Verify that content is dimmed during refresh
Closes CC-628
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent c574fe7 commit 8defaed
File tree
3 files changed
+120
-8
lines changed- ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/customercenter
- data
- viewmodel
3 files changed
+120
-8
lines changedLines changed: 59 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| |||
105 | 113 | | |
106 | 114 | | |
107 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
108 | 142 | | |
109 | 143 | | |
110 | 144 | | |
| |||
388 | 422 | | |
389 | 423 | | |
390 | 424 | | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
391 | 432 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
397 | 451 | | |
398 | 452 | | |
399 | 453 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
Lines changed: 60 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
107 | 115 | | |
108 | 116 | | |
109 | 117 | | |
| |||
128 | 136 | | |
129 | 137 | | |
130 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
131 | 150 | | |
132 | 151 | | |
133 | 152 | | |
| |||
175 | 194 | | |
176 | 195 | | |
177 | 196 | | |
| 197 | + | |
178 | 198 | | |
179 | 199 | | |
180 | 200 | | |
| |||
904 | 924 | | |
905 | 925 | | |
906 | 926 | | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
907 | 935 | | |
908 | | - | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
909 | 941 | | |
910 | 942 | | |
911 | 943 | | |
| |||
937 | 969 | | |
938 | 970 | | |
939 | 971 | | |
| 972 | + | |
940 | 973 | | |
941 | 974 | | |
942 | 975 | | |
943 | 976 | | |
944 | 977 | | |
945 | 978 | | |
946 | 979 | | |
947 | | - | |
948 | | - | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
949 | 1006 | | |
950 | 1007 | | |
951 | 1008 | | |
| |||
0 commit comments