Fixed GalleryActivity.

Edit button was active based on previous count of selected elements.