Setting tab location also resets the icon resId array.