public void selectNextOverlay(){
  if (mCurrentOverlayIndex == NO_OVERLAY) {
    if (mOverlays.isEmpty()) {
      return;
    }
    mCurrentOverlayIndex=0;
  }
 else {
    mCurrentOverlayIndex=++mCurrentOverlayIndex % mOverlays.size();
    if (mCurrentOverlayIndex == 0) {
      mCurrentOverlayIndex=NO_OVERLAY;
    }
  }
  doSetOverlay(getCurrentOverlay());
}

public void selectNextOverlay ( ) { if ( mCurrentOverlayIndex == NO_OVERLAY ) { if ( mOverlays . isEmpty ( ) ) { return ; } mCurrentOverlayIndex = 0 ; } else { mCurrentOverlayIndex = ++ mCurrentOverlayIndex % mOverlays . size ( ) ; if ( mCurrentOverlayIndex == 0 ) { mCurrentOverlayIndex = NO_OVERLAY ; } } doSetOverlay ( getCurrentOverlay ( ) ) ; }
convenience method to cycle through overlays . meant primarily for use in quick control notification , but can be invoked programmatically .
