Set category on resume

(might be imported)
Update switch on resume

(might be imported)