summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/AlbumPage.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused resources and fix some warnings.Owen Lin2012-08-301-19/+0
| | | | Change-Id: I075977150c7da7650e723e29406f24ae2e23ea97
* Reskin: Launch photos in lights-out modeBobby Georgescu2012-08-281-1/+5
| | | | | | | | | Bug: 7050303 - Launch photos in lights out mode when opening from album - One last missing call to super.onCreate added in ManageCachePage Change-Id: I7ad0e64f30748b724d184791e0e0a6a030850049
* Reskin: tweaks to colors and spacings to match mocksBobby Georgescu2012-08-271-0/+1
| | | | | | | | | | | | Bug: 7050303 - Call super.onCreate in ActivityState subclasses in order to correctly initialize background colors, correcting oversight in previous change - Tweak background and label colors to match mocks - Tweak grid spacings to match mocks Change-Id: Iba5cba6c60e8a750d8e50c1d0c14c916754a95c2
* Make transition from album page to photo page even smootherBobby Georgescu2012-08-261-3/+2
| | | | | | Bug: 6979922 Bug: 7050303 Change-Id: Iaa2582125f0706a34317fa90fea73749cd2cf995
* Uses ActionBarSherlock in GalleryOwen Lin2012-08-271-19/+19
| | | | | | bug: 6927267 Change-Id: I1c22975d1a1f3a36510ad93e6a0cefea110ca38f
* Ongoing reskin of Gallery appBobby Georgescu2012-08-241-2/+8
| | | | | | | | | | Bug: 7050303 Moved the majority of color settings from hardcoded to colors.xml in order to allow rapid iteration with UX input. Started changing some colors and layouts to reflect latest UX mocks. Change-Id: I300338e9f75c71f3ed3f36140d16e893387f3184
* Fix NPE, ANRs in GalleryBobby Georgescu2012-08-231-12/+9
| | | | | | Bug: 7041482 Bug: 7041769 Change-Id: I06596bd9a058a8fe51c19108a0891c458950f22b
* Improvements in animation from album page to photo pageBobby Georgescu2012-08-211-0/+26
| | | | | | Bug: 6631829 Bug: 6979922 Change-Id: I99fd330f3ec8bf363f8602a2f893167ca2a9c71b
* Extract the action bar interface.Owen Lin2012-08-151-30/+13
| | | | | | | | | | | | | So that we can use different implementation for different API levels. **NOTE** This change is going to be replaced by the ActionBar compat library when it gets ready. The purpose of this change is making Gallery/Camera run on GB. bug: 6927267 Change-Id: Ic8bb2518918168ea889db6452d6760de390d96b2
* Code clean up.Ahbong Chang2012-07-301-0/+7
| | | | | | | | | Remove unused imports. Remove unused fields. Remove unnecessary cast. Add missing override annotations. Change-Id: Idad2e587697a5015eb5363d7b71fab9de9cc8ffb
* Use actual selection for album/photo detailsMichael Kolb2012-07-261-17/+4
| | | | | | Bug: 6533154 Change-Id: I21ce95d79567396840f08095b986ecc54263a295
* Only give haptic feedback when enabled in system settingsBobby Georgescu2012-07-241-1/+1
| | | | | Bug: 6866688 Change-Id: I4e349fe666244ef5459dd591c8141768b24c910a
* Fix 6259517 "0 images / videos available" toast is displayed in gallery on ↵Ray Chen2012-05-231-1/+3
| | | | | | | | | | launch though it has images / videos And removed sync error toast. Bug: 6259517 Change-Id: Ib7b25176a6db290220661a2e98e4e031043201d9
* Add a new state uploading to UploadedTexture.Owen Lin2012-05-221-2/+4
| | | | | | | | | | | | | This state means the texture is being uploaded in background and should not be drawn now to prevent janking. Sometimes, we may lose GLContext and we will need to reupload textures again. In this case, we would like to upload these texture in foreground instead of using TextureUploader. (for simplicity since this won't happen too often). bug: 6519344 Change-Id: Ic5d7547c6a0eb4b044b79aa0eb4eb52397faac03
* Fix the detail isn't updated for the selected thumbnail.Yuli Huang2012-05-211-0/+2
| | | | | bug:6521826 Change-Id: I1c07c10414ad45721b65583ed5f976c992d27698
* Add transition animation for tapping from PhotoPage.Owen Lin2012-05-171-1/+47
| | | | | bug:6383694 Change-Id: Ib457d6b636dafd3f8ef7340bfa85725f14d90bd0
* Don't show spinner to avoid janky transition.Yuli Huang2012-05-051-6/+0
| | | | | bug:5406790 Change-Id: Ieea09f43d5230e1507c16001ec12b3ea6e3c3f0e
* Add camera icon for camera roll.Chih-Chung Chang2012-05-031-1/+13
| | | | | Bug: 6411709 Change-Id: I2476dba7edb2b763f3b7727f0034fa300cf0287a
* Change thumbnail's position only when it is invisible.Owen Lin2012-05-021-1/+1
| | | | | bug:6393694 Change-Id: I33f41c3c894b4c6d28e0832cfd4badbfca3a4f64
* Fix Back behavior in gallery grid and remove camera preview tile.Chih-Chung Chang2012-04-301-7/+22
| | | | | | | Bug: 6411801 Bug: 6411709 Change-Id: Iebd7db06d44d315ac67eb8c5133b86044fce30c4
* Support drawing in different orientation in Gallery.Chih-Chung Chang2012-04-301-7/+1
| | | | | | | | | | | | | Bug 6312994: Swipe UX: do not directly show the camera roll when camera starts Bug 6313191: Swipe UX: Change swipe direction after the user rotated the device Bug 6313192: Swiping UX: make Gallery display in rotated mode Bug 6399447: Filmstrip: in Gallery, pressing Back from filmstrip doesn't perform the right animation Bug 6399974: Filmstrip: when swiping from full-screen photo to filmstrip mode, camera view and the photo-roll don't align correctly Bug 6400014: Swiping UX: in Camera portrait mode, tapping on the Thumbnail doesn't align camera view and the photo-roll correctly Bug 6401075: Able to scroll through the gallery pics while capturing video. Bug 6405087: Filmstrip does not change with orientation Change-Id: I8c479d87800c63b7a95c199c0c1c3bc512d66d42
* Add prominent highlights for touch feedback.Yuli Huang2012-04-241-45/+70
| | | | | | | | Mimic the system UI to fade out highlights on touch releases. bug:6145331 bug:5379176 Change-Id: I44c9245a926b2c5eb46b28d494c6393ba7f0c30c
* Fix NPE in SlotView.Owen Lin2012-04-181-1/+1
| | | | | | | | | This NPE is actually a concurrent issue. We shall lock renderring when we clean up the slots' data. But it didn't, so it may access to null data. Change-Id: I2a8abfbb77f83bd9a240477fa53216ce69b7774d fix: 6302487 fix: 6308873
* Fix ANR in PhotoPage.Owen Lin2012-04-131-0/+1
| | | | | | | | | | This bugs happens because we open too many PhotoPage(s) (and onSingleTapUp is a delayed event). However, each of the PhotoPage need a Thread to run tile decoder. When we close one of the PhotoPage, it will wait the tile decoder to get finished first. However, the title decoder may still waiting in the queue and never got a chance to run. Change-Id: I113d1150729892edb4fe36bc5a1dc131db300476 fix: 6319833
* Refactor. Rename AlbumView to AlbumSlotRenderer.Owen Lin2012-04-091-5/+5
| | | | Change-Id: I7d8d3586a910dac35975e4effa0d02528e2ccf98
* Refactor. Merge SelectionDrawer with SlotRenderer.Owen Lin2012-04-051-20/+7
| | | | Change-Id: Iaa50b2a78beb95fc83208a5f74cf612650cd8643
* Fix NPE in Gallery.Owen Lin2012-04-051-7/+14
| | | | | | bug: 6249248 Change-Id: I41851c6524163195f6296a15893d962e706b3449
* Fix b/3462852 [UI] When linking from Camera preview - App icon with 'Up' ↵Ray Chen2012-04-031-6/+3
| | | | | | | | | arrow should go to next level up Change startActivity to switchState because not every MediaObject implements "getContentUri" which may cause runtime exception. Change-Id: I88be6e9e8f15ad17f4c7347b6dfc200c7682ce01
* Remove FilmStripView.Chih-Chung Chang2012-04-021-2/+1
| | | | Change-Id: I45cee8c32863cc65eba4c5e83e667e104cf24e42
* Remove Position and PositionRepository.Owen Lin2012-04-021-53/+14
| | | | | | Also fix a regression introduced in previous change. Change-Id: I534c8ca7838f3518856cf48878dd49beeb331562
* Use SurfaceTexture to show Camera preview.Chih-Chung Chang2012-04-021-0/+6
| | | | Change-Id: I8bf63dfc5b969ecce51841378b093a650b6f91d8
* Refactor. Make the code simpler.Owen Lin2012-03-261-22/+27
| | | | Change-Id: I2d3b7a1cfed17afcf6b7ee3e7bf1ca13ada8d9c3
* Fix incorrect initial position/scale of opening animations.Yuli Huang2012-03-211-1/+18
| | | | | | | | | | 1. Initial position of opening animation isn't correctly offset if the position repository isn't properly offset by the action bar height. 2. Initial scale of opening animation should match the thumbnail instead of using a fixed value 240. This CL is part of efforts to fix b:6016973. Change-Id: I620705357ba7594d43685e47488928f9fc93d9f6
* Fix b/6191707 Unable to set Custom wallpaper from HomeRay Chen2012-03-201-1/+1
| | | | Change-Id: I130f74c94ebf5d93922807f7fee5ae7f189a15d4
* Revert "bug #6176711: guard against null GalleryActionBar." andRay Chen2012-03-191-4/+1
| | | | | | fix DialogPicker's NPE issue while setting wallpaper. Change-Id: I833ebfb04907d3a1378df98db51c96b490796a00
* bug #6176711: guard against null GalleryActionBar.Wei Huang2012-03-151-1/+4
| | | | | | | | When entering Gallery app from WallPaper picker, the activity is DialogPicker, which doesn't initialize GalleryActionbar so getGalleryActionbar() returns null. Guard against using the null object. I fixed the obvious NPE here, but Ray or Yuli should take a closer look, to see why this is broken. Change-Id: Ic6923c388ea7b72ab402131fc3b039546509e340
* Fix 3462852 [UI] When linking from Camera preview - App icon with 'Up' arrow ↵Ray Chen2012-03-151-0/+21
| | | | | | | | | | | | | should go to next level up. Some changes in this CL: 1. ActivityState can decide whether to enable home button and show up arrow 2. ActivityState can handle home_up event on its own 3. Support getContentUri in LocalAlbum (Image/Video Roll) and LocalMergeAlbum (Camera Roll) 4. Gallery supports view action for AlbumPage (Camera Roll) Change-Id: I85a75cdce9cbc2a877651fdec34a0180ed8e785c
* Remove unused code.Chih-Chung Chang2012-02-231-14/+0
| | | | Change-Id: I167596ab023671651df298ddb2b80b7c782f4223
* Reduce memory allocation and make small improvements.Chih-Chung Chang2012-02-221-2/+3
| | | | Change-Id: Iac3f302454119de6363cd5cfb158619e739b0536
* Change from fillRect to clearBuffer for pure black background.Chih-Chung Chang2012-02-171-8/+5
| | | | Change-Id: Ie3da19b377f3e7926ab37c5936ce48cbb3227f92
* Try to use less of "Long" to make the program faster.Chih-Chung Chang2012-02-161-2/+2
| | | | Change-Id: I6adb870a8f2bca97318d0fbb6f42388aef4c19c1
* Fix 5835642: Only finish the page when it's still active.Chih-Chung Chang2012-01-091-5/+5
| | | | | | | | | The original code can call finishState twice in a row with the calling stack: finishState -> onPause -> clearLoadingBit -> finishState. Change clearLoadingBit to call finishState only when it's currently active. Change-Id: I537dbdd6ce26b26aeb565e243c4168229d4a70ef
* Show a dialog to require updating PlusOne.Owen Lin2011-11-241-1/+5
| | | | | Change-Id: I1ff4f5eca90ade49b0785324b9319ef0b7d751ca fix: 5608342
* Request sync when opening Gallery/Album.Owen Lin2011-11-111-30/+38
| | | | | | fix: 5519437 Change-Id: I0fb60415e3a92a677ca72ee8e0b95ae57e802152
* Fix 5548567: Don't play video immediately.Chih-Chung Chang2011-11-101-17/+10
| | | | Change-Id: I30e9ebf7461e12250e1ef240c157e7f59b1ce2a1
* Fix 5417248 Gallery shows Details for the same video no matter which is selectedRay Chen2011-10-131-4/+5
| | | | Change-Id: If221ac3d22adfd3a47d98923dab5c4c1e5ca263d
* Request sync when there's no mediaItem in a mediaSet.Hung-ying Tyan2011-10-071-3/+22
| | | | | | | | | | | | | | This is to fix the problem where media items haven't been sync'ed when the album set or album is viewed for the first time. + Add MediaSet.SyncListener. + Make AlbumPage and AlbumSetPage implement SyncListener. + Implement requestSync() for ComboAlbum and ComboAlbumSet. + add ActivityState.isDestroyed(). This also fixes the problem where StateManager.finishState() may be called twice. Bug: 5337899 Change-Id: I25364c3ac25721a2650701c5d7931bfb6daa9303
* Fix 5341761 gallery vibrate on confirm deleteRay Chen2011-09-271-13/+18
| | | | Change-Id: I819855f28246c91324ea86ab9e0ac1ec1c19783c
* Fix 5299746: New UI layout, part 2.Chih-Chung Chang2011-09-201-1/+25
| | | | | | | | | | - Replace various icons and add xhdpi/sw600dp-mdpi versions of them. - When user press on the thumbnails, show a color overlay on it. - For a wide (w/h > 2) picture, add panorama overlay on it. - Align photo count label position when there is no icon for it. - Adjust offline page layout. Change-Id: I327d25806e99843bfa05d3ca0e9be5a8f9375595
* Fix 5331012 [UI] No dropdown label when entering multi-select modes via menu ↵Ray Chen2011-09-191-4/+0
| | | | | | > Select item(s) / group(s) / album(s) Change-Id: Ie46432dd136447942011f3565ab7a6406c461887