In April 2016, I returned from working in Qatar and do not qualify as a nonresident (I did in 2015). How do I exclude my foreign income while I was still out of state?

In 2015, I filed as a California nonresident.  So my foreign income was excluded.  How do I do that this year as a California resident?