public void setSlidingDrawer ( final SlidingDrawer slidingDrawer , final int status ) { if ( slidingDrawer != null ) { Activity activity = activityUtils . getCurrentActivity ( false ) ; if ( activity != null ) { activity . runOnUiThread ( new Runnable ( ) { public void run ( ) { try { switch ( status ) { case CLOSED : slidingDrawer . close ( ) ; break ; case OPENED : slidingDrawer . open ( ) ; break ; } } catch ( Exception ignored ) { } } } ) ; } } }
Sets the status of a given SlidingDrawer . Examples are Solo . CLOSED and Solo . OPENED .