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

Change-Id: I0d3f7481bbfc39d4dc04fd2c6757c5b2248c5e45
Author: beerbong