An Android app I use called Infinite Design has a “Segment” tool that works sort of like this:
It would be really helpful to have a feature like this for polishing linework without fiddling with the eraser. Maybe it could be grouped with the eraser, like how Flash has an alternate Flood Fill mode in the eraser tool settings: