add shadow support for Activity.isTaskRoot