private boolean syncMediaSelectedAsOptions(){
switch (mMediaType) {
case MediaItem.PHOTO:
    if (!mMediaOptions.canSelectMultiPhoto()) {
      mMediaListSelected.clear();
      return true;
    }
  break;
case MediaItem.VIDEO:
if (!mMediaOptions.canSelectMultiVideo()) {
  mMediaListSelected.clear();
  return true;
}
break;
default :
break;
}
return false;
}

private boolean syncMediaSelectedAsOptions ( ) { switch ( mMediaType ) { case MediaItem . PHOTO : if ( ! mMediaOptions . canSelectMultiPhoto ( ) ) { mMediaListSelected . clear ( ) ; return true ; } break ; case MediaItem . VIDEO : if ( ! mMediaOptions . canSelectMultiVideo ( ) ) { mMediaListSelected . clear ( ) ; return true ; } break ; default : break ; } return false ; }
whether clear or not media selected as options .
