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

Change-Id: Ib6e574a2706e44a32e1b8ea58a4a45750580e6b0