LayerActivity: Corrected lifecycle
Should contemplate the case that the activity gets stopped

Change-Id: Ic288bfb0b37ab0c3b8f1b33ec9a20c95a61a3b97
HALO: keep apps in recents

Change-Id: I9ede8a1aba8d6721f077a39a31b6cc5cd8272dc2