Describe the bug
On Android, splitting a list item appears to cause multiple updates to the text. This causes a number of issues including (a) sometimes ending up in an unexpected state after splitting list items (see Step 5 in the steps to reproduce) and (b) it can take multiple undo actions to "undo" the splitting of a list item (see Steps 6, 8, 10, 12, and 14).
When I tested this on production (a) did not occur, but (b) still did. I suspect that (a) is due to a race condition.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
This gif follows the steps to reproduce outlined above.

Smartphone (please complete the following information):
Possibly related to #65
I see the expected behavior (clear split, one-undo-returns to joint line) on (production) WPAndroid 15.0-rc-3 running on Pixel 2XL Android 10. Same on the demo app (against Metro) on 7495fbf3, same device/OS. Except for the slowness on the Metro case, I see no visual artifacts, broken/empty lines or similar.
Is the issue still happening for you @mchowning ?
I see the expected behavior (clear split, one-undo-returns to joint line) on (production) WPAndroid 15.0-rc-3
Just did a quick test using WPAndroid 15.0-rc-3 on a Pixel 3 running Android 10, and I had to press undo 5 times to "undo" splitting a list item. I wonder why I'm seeing that issue and you're not @hypest . 馃

For reference, here's a GIF from my run (using the APK from https://github.com/wordpress-mobile/WordPress-Android/releases/tag/15.0-rc-3):

Ok, did some more testing, and apparently it makes a difference whether you move the cursor to the middle of the word by tapping or scrolling with the spacebar!?!? 馃槺
tapping (1 undo) | scrolling with spacebar (5 undos)
---- | ----
| 
This test was with the 15.0-rc3 on a Pixel 1 running Android 10 (my earlier comment was with a Pixel 3) fwiw.
Aha, interesting. If the "tap to set cursor" works, I'm thinking of lowering the priority on this ticket since I assume tapping to set cursor is the most common flow?
At least we now have more specific steps to try and reproduce. Lemme try this on my side. Edit: hmm, can't repro on my side by using the spacebar-sliding method.
I'm thinking of lowering the priority on this ticket since I assume tapping to set cursor is the most common flow?
I agree @hypest . Went ahead and lowered this to Medium, but I'm not opposed to making it Low if you think that's more appropriate.
can't repro on my side by using the spacebar-sliding method
So weird! I can't deny that it seems more likely I have something going on with my end compared to the idea that how you set the cursor really does make a difference here, but I've reproduced this on both the release 15.0-rc3 apk from github and the one distributed on the Play Store beta channel on two different Pixel devices (1 and 3). I'm not sure what else to try. If someone else tries this and can't recreate it we should probably just close this and we can reopen it if someone else encounters it.
If someone else tries this and can't recreate it we should probably just close this and we can reopen it if someone else encounters it.
Let's give this a shot. @cameronvoell , can you try to reproduce this issue when you get the chance? Thanks!
Let's give this a shot. @cameronvoell , can you try to reproduce this issue when you get the chance? Thanks!
I am able to reproduce the multiple undo behavior ((b) from description ) follow the steps precisely from the description with scrolling spacebar, but not the "unexpected state" ((a) from description).
I can only reproduce (b) when I do the "scrolling with the spacebar". Tapping or moving the cursor with the arrow keys on my tablet do not reproduce the issue. It would be interesting to see why the spacebar scroll is different, but I agree this is less priority since the tap to move cursor works fine, and the scrolling with spacebar seems to only cause the issue if I follow the description steps exactly, and does not create extra undo's other times.
In https://github.com/wordpress-mobile/gutenberg-mobile/issues/2373#issuecomment-659798095 I learned that Aztec on Android doesn't handle input from Gboard well, especially in relation to Enter and Backspace keyboard events. Since this issue is also only present using the Gboard and also relates to the Enter key event, I'd say that once we fix that issue, there's a decent chance this will also be fixed.
Here's a quick summary of my tests:
When placing the cursor by _tapping_, I could reproduce on the second attempt.
See gif

When placing the cursor by scrolling the spacebar, I could often reproduce on the first go. I don't have a gif of this.
Also, after hitting Enter to create the second list item, the app sometimes got in a loop.
See gif

Similar results to Gutenberg demo app tests above.
See gif

Most helpful comment
I am able to reproduce the multiple undo behavior ((b) from description ) follow the steps precisely from the description with scrolling spacebar, but not the "unexpected state" ((a) from description).
I can only reproduce (b) when I do the "scrolling with the spacebar". Tapping or moving the cursor with the arrow keys on my tablet do not reproduce the issue. It would be interesting to see why the spacebar scroll is different, but I agree this is less priority since the tap to move cursor works fine, and the scrolling with spacebar seems to only cause the issue if I follow the description steps exactly, and does not create extra undo's other times.