Moving States as a Student

Hello, I am from CA but have lived outside of CA for the past decade (I went to undergrad in another state and then worked before going to graduate school). I lived in VA for one year before graduate school and am a student in VA. I was in VA for roughly 7.5 months in 2019.

 

I interned in TX over the summer of 2019, where I earned the entirety of my income for that year. I did not earn a cent in VA. I will have accepted an offer to return to TX to work full-time and will live in TX and do not have plans to return to VA after I graduate in May.

 

Do I need to pay state income tax in VA if I didn't earn any money while in VA and don't intend to return when I graduate from school here? If so, do I need to pay a full year's worth of tax even though I was not in VA for roughly 4.5 months and didn't earn any money in VA?