Retrograde Battleships

All ship segments are visible. Divide them into the correct fleet.
Controls
Tap a segment, then tap another segment in the same line to join them into a ship. Every group must be a straight, continuous ship. Use the full fleet: one 4, two 3s, three 2s and four 1s. Ships may not touch, even diagonally.
Brain training · PuzGo