cros: Speculative fix for app movement crash

The check can only be hit if item_count() is 1, but the to/from indices
are not equal.

If item_count() is 1, we shouldn't be doing a move anyways, so return

This crash is likely occurring because a sync is coming in to delete the
second item in a 2-item folder during the drag reorder.

Bug: 937431
Change-Id: I2521f2e89ace9ca8c9218bfd050c04cc6bb89d2d
Auto-Submit: Alex Newcomer <>
Reviewed-by: Xiyuan Xia <>
Commit-Queue: Xiyuan Xia <>
Cr-Commit-Position: refs/heads/master@{#652692}
1 file changed