Device Steadily Discharging While Plugged Into AC?
I fixed the problem by switching cables.

The cable must have gotten a bad connection so the wires dedicated to power could carry less current. You might try bending the cable in a certain direction to get a better connection, but the real solution is to replace the cable.