summaryrefslogtreecommitdiffstats
path: root/photoviewer/src/com/android/ex/photo
Commit message (Collapse)AuthorAgeFilesLines
* Load preview firstPaul Westbrook2012-10-131-14/+12
| | | | | | | | | | | If the preview is available, load the it first, while waiting for the full size image to load Cherry-pick of https://googleplex-android-review.googlesource.com/#/c/238893/ Bug: 7340082 Bug: 7298245 Change-Id: I64934001d832844a776f8d9c1f2abcece552f79c
* Set the scale type for the default image iconPaul Westbrook2012-10-121-0/+1
| | | | | | | | | | | By setting the scale type to center, the default icon is not scaled up. cherry-pick of https://googleplex-android-review.googlesource.com/#/c/238674/ Bug: 7298245 Bug: 7340457 Change-Id: I66200a1c751ca80e878e55a7b9daa656a6cbe98d
* Add Exif parserPaul Westbrook2012-09-252-170/+343
| | | | | | | | | | | Class to parse exif headers of images to detect orientation Modify ImageUtils#decodeStream to parse the exif header and respect orientation Bug: 7087307 Change-Id: I93c3a69a50ae26d3fd4e96944439f87e9d511945
* Use gesture detector from support libPaul Westbrook2012-09-212-670/+8
| | | | | Bug: 7206080 Change-Id: I9b5d332d095335f13b61c9c9ccd8152a462a9eb5
* Prevent NPE while viewing photo from attachment.Mark Wei2012-09-191-2/+4
| | | | | Bug: 7189283 Change-Id: Ibcb98ae13cf801a6934e0ed4efb4c5349678dcce
* Integrate copy of GestureDetector into photoviewerPaul Westbrook2012-09-172-8/+657
| | | | | | | This allows the MR0/1 behavior to be used when Email/Gmail is running on older versions of the platform Change-Id: I1936d36ddb9f09a3b48d38c2ad44e70ac002fbda
* Prevent NPE in Gmail while viewing photo from attachmentMark Wei2012-09-171-1/+4
| | | | | Bug: 7174197 Change-Id: I29ca226b5134888dbe3488f859d9790fe1388984
* Allow action bar to be updatedPaul Westbrook2012-08-301-0/+6
| | | | | | | | Allow the action bar to be updated when the photo list loader loads data Bug: 7082929 Change-Id: I476df1fa2ec7dcb1adfe5aed359a5126c60be179
* Fix NullPointerException when tapping attachment.Mark Wei2012-08-302-2/+4
| | | | | Bug: 7083179 Change-Id: I9955aeda9a0d2bb6d30ce9f7e7e3961cb47284e0
* Attachment image viewer should not scale images larger than original size.Mark Wei2012-08-292-3/+10
| | | | | Bug: 7049410 Change-Id: I1ed2555203e1541f1481cae4f17f532eaa57c1cd
* Fix crash in email with attachmentsPaul Westbrook2012-08-282-41/+38
| | | | | | | There isn't a need to call swapCursor in a runnable Bug: 7072747 Change-Id: I0a0a9b6835acc4a1d1748c94f4d8bec4551638b0
* Abort posted runnable if cursor is no longer openMarc Blank2012-08-211-0/+4
| | | | | Bug: 7002552 Change-Id: I38ce1231b0ec88ebf02d4d0edb5495b8baac65d5
* Fix some photo view problemsPaul Westbrook2012-08-154-34/+33
| | | | | | | | Make sure to stop the indeterminate progress bare when we can't load an image Bug: 6956516 Change-Id: Ifb69ca2e08a8ddfb351989d8e276e7fb6e3b06e5
* Created a sample photo viewer implementation.Andrew Sapperstein2012-08-101-3/+3
| | | | Change-Id: Ida5ab5c3247a52c5fbbd495d6e127c18493356ce
* Made title and subtitle not show immediately.Andrew Sapperstein2012-08-073-29/+7
| | | | | | | | Fixes an issue where we used to show the app title for an instant before getting the data for the photo. Now we show nothing until we have the photo data. Change-Id: I2a77b18af2ec2051848c188e0dad7ca04be4f285
* Fix Build.Andrew Sapperstein2012-08-071-2/+0
| | | | Change-Id: If36065612faadc4d6b44ddbfc9efde0597db4718
* Enabled optional support for showing progress.Andrew Sapperstein2012-08-033-40/+142
| | | | | | | | | | | | | | | | Added some progress bars to the "empty" view so that implementors of the API can show the progress of things like downloads or loading. Additionally, added a retry button and an optional text that allows you to indicate status to the user. Due to a bug in the framework, we actually use two progress bars (one determinate and one indeterminate) to update our status. Created a wrapper that allows the controlling of both progress bars in sync. Change-Id: I710e06317948d376d445abf1603545982ac8479d
* ActionBar now auto-hides like Gallery's version.Andrew Sapperstein2012-07-302-21/+56
| | | | | | | | | | | | 5 second delay from opened. Will not hide on first appearance. Has be closed and re-opened. Also, eliminated the progress spinner when the photo hadn't yet loaded. Additionally, modified the action bar to match gallery's transparency. Change-Id: I69e72d787bc2cda9c18df6a9cf1800d155d6876a
* Fixes a bug where scaling would not be performed.Andrew Sapperstein2012-07-271-1/+10
| | | | | | | | | Had to add an additional case to the page transform that handles the new issue where the just disappeared view is actually behind the screen but still getting touch events. Victory. Change-Id: Ifb760fd7d7510fec37c4101d448dbc980575b1be
* Partial fix of 6890014.Andrew Sapperstein2012-07-273-6/+3
| | | | | | | No longer crashing. But the attachment is now in a very weird state. Change-Id: If688d9c19a81124cbd1ecd0266821800f76f3c74
* Showing a default preview photo.Andrew Sapperstein2012-07-262-4/+20
| | | | | | | | | If we do not have a preview and are currently waiting on a full photo, we will show a stock photo. Currently shows a grey box as we do not have assets yet. Change-Id: I155071598b20bf81b2b60bdd8ac881a64b8ee1b7
* Finalized the photo viewer transitions.Andrew Sapperstein2012-07-251-12/+0
| | | | | | | | Changed the black background to be on the FrameLayout behind the view pager rather than on the the photo view. Also deleted some dead code. Change-Id: I19759d3f7e93c32b6c6aceda0c296610f90f20f7
* Added transitions to photo viewer.Andrew Sapperstein2012-07-241-1/+26
| | | | Change-Id: Ie3c9a36019e161cf0f7b32cfbeba4749ef5ccfd8
* Support showing previews in the photo viewer.Andrew Sapperstein2012-07-235-44/+69
| | | | | | | | | | | | | | | | The photo viewer now supports the notion of a preview of the full image. The preview is not pinchable in any manner and displays a circular progress bar over top of it while we are downloading the full version of the image. To enable this functionality, there is a new column in the PhotoContract API called thumbnailUri. If it is not set to null and if the attempted load of the contentUri is unsuccessful, we will attempt to load a thumbnail version that will show until the contentUri is finished loading. Change-Id: I5547a5fc6a30ee6a30f137dc1dee76a77fb5b304
* Reloading bitmaps if cursor updates.Andrew Sapperstein2012-07-235-152/+92
| | | | Change-Id: I5624e533d4f35255028cd1a31508dabdb33dfe7f
* Initial import of the photo viewer.Andrew Sapperstein2012-06-2512-0/+3531
Change-Id: Ia6b1cb2ae3b40ef004823a0d84fe3c2f52ed66e9