A China factory learned to live with Trump, tariff