Two-year sentence for smartphone robber