Repository navigation
Commit fb0f1fd
committed
fix: snapshot reading position before reserving an edit
Fix the cursor race behind the app-1 CI device-test failure. Room's edit reservation can rerender the preview while beginEditing suspends, leaving its layout unavailable and moving the cursor to the end.
Strengthen the regression test to check the actual reading-position offset. Verify with just check and the full API 36 device-test suite.
CI failure: https://github.com/qownnotes/qownnotes-android/actions/runs/43240632072/job/1312597295681 parent 1b92011 commit fb0f1fd
3 files changed
Lines changed: 39 additions & 5 deletions
File tree
- app/src
- androidTest/kotlin/org/qownnotes/mobile
- main/kotlin/org/qownnotes/mobile
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3031 | 3031 | | |
3032 | 3032 | | |
3033 | 3033 | | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
3034 | 3040 | | |
3035 | 3041 | | |
3036 | 3042 | | |
| |||
3039 | 3045 | | |
3040 | 3046 | | |
3041 | 3047 | | |
| 3048 | + | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
3042 | 3065 | | |
3043 | 3066 | | |
3044 | 3067 | | |
| |||
3047 | 3070 | | |
3048 | 3071 | | |
3049 | 3072 | | |
| 3073 | + | |
3050 | 3074 | | |
3051 | 3075 | | |
3052 | 3076 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3577 | 3577 | | |
3578 | 3578 | | |
3579 | 3579 | | |
| 3580 | + | |
| 3581 | + | |
| 3582 | + | |
| 3583 | + | |
| 3584 | + | |
| 3585 | + | |
| 3586 | + | |
| 3587 | + | |
3580 | 3588 | | |
3581 | 3589 | | |
3582 | 3590 | | |
3583 | 3591 | | |
3584 | | - | |
3585 | | - | |
3586 | | - | |
3587 | | - | |
3588 | | - | |
| 3592 | + | |
3589 | 3593 | | |
3590 | 3594 | | |
3591 | 3595 | | |
| |||
0 commit comments