Merge "Determine if the activity is the topmost one" into rvc-dev am: b4d5aef6b0 am: fb4bb30908 am: 2615ecc4e7

Change-Id: I08493e2ab091aa168b4030b0b2a2f6d8b039f5f1