Commit b2de21d
committed
Fixed: PlayStore reported a crash for
* The crash occurred because the fragment was not visible on the window when attempting to stop the read-aloud service. We improved the service-stopping logic to ensure it is handled correctly when the Compose view is disposed.
* Applied similar improvements to other fragments with the same pattern, ensuring all listeners, callbacks, and services are properly cleaned up at the appropriate lifecycle moment.android.app.BackgroundServiceStartNotAllowedException.1 parent 7b8f544 commit b2de21d
File tree
3 files changed
+54
-6
lines changed- core/src/main/java/org/kiwix/kiwixmobile/core
- main/reader
- search
3 files changed
+54
-6
lines changedLines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
221 | 230 | | |
222 | 231 | | |
223 | 232 | | |
| |||
611 | 620 | | |
612 | 621 | | |
613 | 622 | | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
614 | 627 | | |
615 | 628 | | |
616 | 629 | | |
| |||
Lines changed: 29 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
480 | 481 | | |
481 | 482 | | |
482 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
483 | 492 | | |
484 | 493 | | |
485 | 494 | | |
| |||
1053 | 1062 | | |
1054 | 1063 | | |
1055 | 1064 | | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1056 | 1080 | | |
1057 | 1081 | | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
1058 | 1086 | | |
1059 | 1087 | | |
1060 | 1088 | | |
| |||
1074 | 1102 | | |
1075 | 1103 | | |
1076 | 1104 | | |
1077 | | - | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
| 1105 | + | |
1082 | 1106 | | |
1083 | 1107 | | |
1084 | 1108 | | |
| |||
1095 | 1119 | | |
1096 | 1120 | | |
1097 | 1121 | | |
1098 | | - | |
1099 | 1122 | | |
1100 | 1123 | | |
1101 | 1124 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
140 | 148 | | |
141 | 149 | | |
142 | 150 | | |
| |||
217 | 225 | | |
218 | 226 | | |
219 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
220 | 232 | | |
221 | 233 | | |
222 | 234 | | |
| |||
0 commit comments