@ Nullable @ SuppressWarnings ( "unchecked" ) public < T extends Fragment > T findFragmentByPane ( @ IntRange ( from = 1 , to = 2 ) int pane ) { String tag = Elements . get ( sPanes , pane - 1 ) ; return tag != null ? ( T ) getFragmentManager ( ) . findFragmentByTag ( tag ) : null ; }
Get the fragment that is displayed in the pane .