Merge "Use ViewCompat#isAttachedToWindow to fix FragmentLifecycleTest." into nyc-support-24.1-dev