public boolean waitForEmptyActivityStack ( int timeout ) { if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "waitForEmptyActivityStack(" + timeout + ")" ) ; } return waiter . waitForCondition ( new Condition ( ) { @ Override public boolean isSatisfied ( ) { return activityUtils . isActivityStackEmpty ( ) ; } } , timeout ) ; }
Wait for the activity stack to be empty .