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