private void onClickGalleryImage(final RecentMedia aMediaItem){
  if (null != mCamera) {
    mCamera.stopPreview();
  }
  mSelectedGalleryItemsList.add(aMediaItem);
  if ((null != aMediaItem.mThumbnail) && !mIsAvatarMode) {
    updateUiConfiguration(UI_SHOW_TAKEN_IMAGE,IMAGE_ORIGIN_GALLERY);
    mImagePreviewImageView.setImageBitmap(aMediaItem.mThumbnail);
    VectorApp.setSavedCameraImagePreview(aMediaItem.mThumbnail);
  }
 else   if (null != aMediaItem.mFileUri) {
    displayImagePreview(null,null,aMediaItem.mFileUri,IMAGE_ORIGIN_GALLERY);
  }
 else {
    Log.e(LOG_TAG,"## onClickGalleryImage(): no image to display");
  }
  mImagePreviewImageView.setTag(aMediaItem.mFileUri);
}

private void onClickGalleryImage ( final RecentMedia aMediaItem ) { if ( null != mCamera ) { mCamera . stopPreview ( ) ; } mSelectedGalleryItemsList . add ( aMediaItem ) ; if ( ( null != aMediaItem . mThumbnail ) && ! mIsAvatarMode ) { updateUiConfiguration ( UI_SHOW_TAKEN_IMAGE , IMAGE_ORIGIN_GALLERY ) ; mImagePreviewImageView . setImageBitmap ( aMediaItem . mThumbnail ) ; VectorApp . setSavedCameraImagePreview ( aMediaItem . mThumbnail ) ; } else if ( null != aMediaItem . mFileUri ) { displayImagePreview ( null , null , aMediaItem . mFileUri , IMAGE_ORIGIN_GALLERY ) ; } else { Log . e ( LOG_TAG , "## onClickGalleryImage(): no image to display" ) ; } mImagePreviewImageView . setTag ( aMediaItem . mFileUri ) ; }
the user clicked on a gallery image
