[ListActivity]Fixed a bug in GalleryActivity