Strong and weak localization in a ballistic quantum chain