@ SuppressWarnings ( "unchecked" ) public boolean isTextChecked ( String text ) { if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "isTextChecked(\"" + text + "\")" ) ; } waiter . waitForViews ( false , CheckedTextView . class , CompoundButton . class ) ; if ( viewFetcher . getCurrentViews ( CheckedTextView . class , true ) . size ( ) > 0 && checker . isCheckedTextChecked ( text ) ) return true ; if ( viewFetcher . getCurrentViews ( CompoundButton . class , true ) . size ( ) > 0 && checker . isButtonChecked ( CompoundButton . class , text ) ) return true ; return false ; }
Checks if the specified text is checked .