Save activity state before stopping acitivity when device sleeps
am: b5066fe307

Change-Id: I95e897de48a9f5b10728110b5b3c9d379f86f695