leanback/src/androidTest/java/androidx/leanback/app/RowsFragmentTest.java
RowsFragment waitRowsFragment() {
            PollingCheck.waitFor(new PollingCheck.PollingCheckCondition() {
                @Override
                public boolean canProceed() {
                    return mMainFragmentListRowDataAdapter != null
                            && getMainFragment() instanceof RowsFragment
                            && !(getMainFragment() instanceof SampleRowsFragment);
                }
            });
            return (RowsFragment) getMainFragment();
        }
/**
         * Wait until a fragment for non-page Row is created. Does not apply to the case a
         * RowsFragment is created on a PageRow.
         */
Wait until a fragment for non-page Row is created. Does not apply to the case a
RowsFragment is created on a PageRow.
Wait until a fragment for non - page Row is created . Does not apply to the case a RowsFragment is created on a PageRow .
RowsFragment waitRowsFragment() {
            PollingCheck.waitFor(new PollingCheck.PollingCheckCondition() {
                @Override
                public boolean canProceed() {
                    return mMainFragmentListRowDataAdapter != null
                            && getMainFragment() instanceof RowsFragment
                            && !(getMainFragment() instanceof SampleRowsFragment);
                }
            });
            return (RowsFragment) getMainFragment();
        }
RowsFragment waitRowsFragment ( ) { PollingCheck . waitFor ( new PollingCheck . PollingCheckCondition ( ) { @ Override public boolean canProceed ( ) { return mMainFragmentListRowDataAdapter != null && getMainFragment ( ) instanceof RowsFragment && ! ( getMainFragment ( ) instanceof SampleRowsFragment ) ; } } ) ; return ( RowsFragment ) getMainFragment ( ) ; }
Wait until a fragment for non-page Row is created.
Wait until a fragment for non - page Row is created .