Yes, but it depends on what he really needs to know. Will he be doing something different depending on whether the battery is charging or is fully charged? Or does he just need to know that one or the other is true, and that no "impossible" is taking place. In that case a SN74LVC1G86 would work. But as you say, a second GPIO is really the answer if he can find one.