Do I pay TX or MN state taxes for working in TX half the year?

Dear Tax Experts,

 

I worked and lived in Minnesota (MN) Jan 1 - Jun 30, 2019.

 

Then I worked in Texas (TX) Jul 1, 2019 thru Feb 2020 (ie this year), while living in TX and foreign countries due to employer requirement.

 

I left the TX employer end of Feb 2020, and returned to live in MN.

 

Since TX has no income tax, am I supposed to pay MN the state tax for the second half of 2019?

 

Thank you very much!