Commit 03061ca
Enable WAL on the Reader database to prevent onStart ANRs (#23116)
Without WAL, Android caps the reader DB connection pool at one connection,
serializing all reads/writes across threads. A main-thread tag read in
ReaderPostListFragment.onStart could then block behind a background write
(purge/reset/addOrUpdatePosts) long enough to trigger an ANR.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent a2047ac commit 03061ca
1 file changed
Lines changed: 11 additions & 0 deletions
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
190 | 201 | | |
191 | 202 | | |
192 | 203 | | |
| |||
0 commit comments