I have a smart charger that in some way identifies what kind of rechargeable battery you have connected, and adjusts the voltage and charge rate accordingly,
Older ones will only charge one type safely.
I suppose you could time it to reach correct voltage, and then take it off to prevent...