The commercial success of the Galaxy Z Flip demonstrated the market’s interest in foldable smartphones.