Default about charging new battery for s5660

Battery of my Galaxy Gio GT-S5660 would not last for more than 3 hours. Took risk on getting a replacement battery from mpj, and I am glad that it has a good battery life. I always left my phone on even when charging. Did it affect on battery? Should I turned the phone off while charging?