summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/PhotoDataAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
* Show sync error toast only when both loading and syncing are done.Hung-ying Tyan2012-10-301-1/+1
| | | | | Bug: 7427597 Change-Id: Ie1fe8510e2a2225424b3c2892b2c0a8b4021324c
* Fix delete and undo behavior on filmstripBobby Georgescu2012-10-191-2/+6
| | | | | Bug: 7353749 Change-Id: Ib0abd3f71783c01b1df418dd76e674bf05e65ce7
* Fixes bugs in TiledTexture.Owen Lin2012-10-161-10/+11
| | | | | | | | | 1. Upload tiles in SinglePhotoDataAdapter 2. Rebuild the upload queue after the screen nails being recycled bug: 6399444 Change-Id: I57e756f8d1d84742bf82dd34c83baf8df89ae4cc
* Revert "Revert "Upload screennails in tiles to prevent jank""Owen Lin2012-10-111-2/+39
| | | | | | | This reverts commit ad7cf187bf0c11b05aa3eab7085148e0353f2af5. bug: 6399444 Change-Id: I94b286ab3e0db21c582cbfa9183489613da30edb
* Revert "Upload screennails in tiles to prevent jank"Bart Sears2012-10-061-39/+2
| | | | | | | | | | This CL is reported to cause images to not be displayed correctly when opened via the view intent. Bug: 7299123 This reverts commit e29fc4a51b99f12f7fae13fae272858df2e1af36 Change-Id: I5052548a826c275cb4559eeb4721c19f06861b3d
* Upload screennails in tiles to prevent jankOwen Lin2012-10-051-2/+39
| | | | | | bug: 6399444 Change-Id: Id2338db34d7f87fbabd7861f78b42f2a81d9794b
* Remove video play icon and tap to play behavior for panorama.Mangesh Ghiware2012-09-301-10/+0
| | | | | | | | | | | | Bug: 7258968 Per new UX design, there'll be a panorama viewer icon in the bottom right instead (see b/7233446) This is essentially a revert of Change-Id I17fdb5d6bcab1f3997a1ab92fcf45e0309b394b3 Change-Id: Ib35c99cca4ee9b2422dd16f5ea3b931ad5f08f35
* Add UriImage support for viewing LightCycle panoramas.George Mount2012-09-181-2/+1
| | | | Change-Id: I7f61cef39370fd23b9481708dc3c902c17873074
* Ensure peekObject is called in the syncrhonization block.Owen Lin2012-09-111-43/+40
| | | | | bug: 7019598 Change-Id: If153287078826afc9827ea64364b4fb64f2b3a5f
* Show play icon for panorama.George Mount2012-09-101-0/+11
| | | | | | Bug 7124494 Change-Id: I17fdb5d6bcab1f3997a1ab92fcf45e0309b394b3
* Uses ActionBarSherlock in GalleryOwen Lin2012-08-271-1/+1
| | | | | | bug: 6927267 Change-Id: I1c22975d1a1f3a36510ad93e6a0cefea110ca38f
* Rotate the camera screen nail correctly in gingerbread.Wu-cheng Li2012-08-201-1/+8
| | | | | | | | | In gingerbread, camera screen nail is a static image. Handle its rotation like a bitmap screen nail. bug:6927809 Change-Id: I554483e58fc9e32399acb20f426d7ec35631b7ac
* Show the correct image on a ACTION_VIEWMangesh Ghiware2012-08-021-1/+2
| | | | | Bug: 6819100 Change-Id: I7c381c506fa627c3f285fb6857b77cdb770addb7
* Handle null item in findIndexOfPathInCache.Chih-Chung Chang2012-08-011-1/+2
| | | | | Bug: 6708911 Change-Id: Ifd1e8342906a3c61d30448ea6b0085c37ccdeb03
* Fix bugs 6882711 and 6836814Bobby Georgescu2012-07-301-0/+5
| | | | | | | | | | | | Bug: 6882711 Bug: 6836814 A number of issues surrounding the behavior after deleting the last photo from the camera roll within the Camera app, including occasional black screen & incorrectly persistent action bar. Change-Id: Ib5f41a78c613da90bb844aab2d40f45e314d3ee3
* Code clean up.Ahbong Chang2012-07-301-0/+14
| | | | | | | | | Remove unused imports. Remove unused fields. Remove unnecessary cast. Add missing override annotations. Change-Id: Idad2e587697a5015eb5363d7b71fab9de9cc8ffb
* Add swipe-to-delete gesture.Chih-Chung Chang2012-06-181-30/+81
| | | | Change-Id: I992e59702f9dfff17da2f4464e48c9228d42b1b3
* Reuse bitmap to prevent GC in TiledImageView.Owen Lin2012-05-221-2/+3
| | | | | bug:5948093 Change-Id: Iad89c5809bde0de5409752330f607aab153dceba
* Limit the size of a ScreenNail.Owen Lin2012-05-221-3/+3
| | | | | | | | | | | | | bug:6528366 This bug was happened because we are trying to make a texture beyond the max size allowed in GL. Here is what we do in this CL: 1. Limit the size of a screen nail 2. Print warning message, if we try to allocate a texture beyond the size 3. Don't show fall-back animation if the image is not loaded yet. Change-Id: I004b1138efd0eef7ba11aa89556f67743ca46745
* Don't fire data change notification before the data is made consistent.Chih-Chung Chang2012-05-211-1/+0
| | | | | Bug: 6500467 Change-Id: Ia064461daba92bbf1172eae5d321bf5049de6d48
* Show gray tile for screennails not loaded yet.Chih-Chung Chang2012-05-171-71/+157
| | | | | Bug: 6452217 Change-Id: Ied9c2e2c91f4ffe218a73ba1a123df92a2aab98a
* Support Panorama preview.Angus Kong2012-05-171-1/+9
| | | | | | | The panorama preview doesn't consider display rotation. bug:6305152 Change-Id: I6389a74d3c0e64d8b6bc206e728d1088f04be225
* Add transition animation for tapping from PhotoPage.Owen Lin2012-05-171-3/+7
| | | | | bug:6383694 Change-Id: Ib457d6b636dafd3f8ef7340bfa85725f14d90bd0
* Revert "Support Panorama preview."Angus Kong2012-05-171-9/+1
| | | This reverts commit 41832d9f1568c7d8227fb9ffebaf7830345cffff
* Support Panorama preview.Angus Kong2012-05-171-1/+9
| | | | | | | The panorama preview doesn't consider display rotation. bug:6305152 Change-Id: I6b87c18ed8eadf1b2bf5e64437c5b290d111cbba
* Better data change handling for PhotoDataAdapter and PhotoView.Chih-Chung Chang2012-05-111-12/+69
| | | | Change-Id: I0f67d918b95000d10786d2035286e036346bfa4e
* Put play video icon at the same place of the screennails.Chih-Chung Chang2012-05-071-0/+8
| | | | | Bug: 6412197 Change-Id: Idaae46c598035639907a85f726b763b80bd9572d
* Fix 'Edit' and 'Crop' behaviors.Yuli Huang2012-05-021-2/+0
| | | | | | | | | 1. Make Gallery show edited local photo after resuming, similar to how it shows cropped local photo after resuming. 2. Fix inconsistency between cropping local/PWA photo. bug:6168430 Change-Id: Ia350e0c67f05969ad42f56b9693c09c3b6433d3c
* Support drawing in different orientation in Gallery.Chih-Chung Chang2012-04-301-14/+12
| | | | | | | | | | | | | 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
* Don't do capture animation if we don't have Camera ScreenNail.Chih-Chung Chang2012-04-251-0/+5
| | | | | | | | Also make "Back" jump to first picture instead of the previous one. Bug: 6388263 Change-Id: Idf78363cf3952bf66c6b0688e79d99c01956cd07
* In filmstrip, show placeholders for pictures not loaded yet.Chih-Chung Chang2012-04-191-16/+42
| | | | Change-Id: I037f1f054da4a3800045d5b89724341ac22272a5
* Allow filmstrip to scroll before the screennail is loaded.Chih-Chung Chang2012-04-191-1/+2
| | | | Change-Id: I9aa7405902c4bfb7e4946cfe4e1263314a958686
* Add thumb pool the cache Bitmap used for thumbnails.Chih-Chung Chang2012-04-181-9/+18
| | | | Change-Id: Ib710f2a6fc1aa86fe4abdd18d1fa7ac71396a3b4
* Add new filmstrip mode for PhotoView.Chih-Chung Chang2012-04-101-34/+23
| | | | Change-Id: I9da9896303ced8d63a3557d5e6e9bc06fb366cf5
* Remove FilmStripView.Chih-Chung Chang2012-04-021-5/+0
| | | | Change-Id: I45cee8c32863cc65eba4c5e83e667e104cf24e42
* Use SurfaceTexture to show Camera preview.Chih-Chung Chang2012-04-021-1/+1
| | | | Change-Id: I8bf63dfc5b969ecce51841378b093a650b6f91d8
* New effect in photo browsing.Chih-Chung Chang2012-03-221-2/+3
| | | | Change-Id: I12ca70f56f5c874292a7a6f38f0518bbc855ed70
* Create a ScreenNail interface so we can add other types of screenails.Chih-Chung Chang2012-03-211-27/+30
| | | | | | Add a new MediaItem type to contain a ScreenNail. Change-Id: Ia303949f3013dd48ded204eaf9ec69a102b8503e
* Reorganize import for all files.Owen Lin2012-03-141-5/+5
| | | | Change-Id: Ia9188bcde727e317e6a476caccaea562f0758b19
* Fix b/5840847: Always show 'Loading...' for corrupt pictures.Yuli Huang2012-02-071-9/+8
| | | | Change-Id: I040f6e4090dad3e73b86062ddefd9bb0be581bf5
* Fix picasa images rotate incorrectly.Owen Lin2011-09-121-2/+24
| | | | | | fix: 5268469 Change-Id: I58fc4a6d4a10c2952040eedee5936efa949b66e2
* Fix a no-thumbnail error message.Owen Lin2011-09-061-2/+8
| | | | | | | | This happens if we cancel the first image reqest and then resend another in a very short time. We may got an null image for the first request and think this is a invalid bitmap. Change-Id: I9ab62a658c281ef3d197474a5db50579e560f1bd
* Improve the performance of Reviewing a photo.Owen Lin2011-09-051-0/+8
| | | | | | | | | | | | | | | | | fix: 5144370 There is two componenet in the photo page. One is the large photo and the other is the thumbnail strip. They idenpendently load their own data and images. This change fixes several issues here: 1. Prevent sending to many jobs to ThreadPool and block others. In a worse case, if the thumbnail strip send image requests first, it may block the ThreadPool very long. 2. Improve the performance of extracting thumbnails from local files. Now we try to extract the thumbnails from EXIF data first. Change-Id: I45100d4daa025efb479f47c4f105de2b4731b498
* Initial code for Gallery2.Owen Lin2011-08-181-0/+794
fix: 5176434 Change-Id: I041e282b9c7b34ceb1db8b033be2b853bb3a992c