55ac8ea9519e981bfdbd83c82615c72cfa78d84c |
|
19-Aug-2014 |
Shri Borde <shri@google.com> |
Bug 16879455: PhotoViewFragment.sPhotoSize initialized late The NPE happens because PhotoViewFragment.sPhotoSize is null. It is initialized in PhotoViewFragment.sPhotoSize. However, PhotoBitmapLoader is created from Activity.onCreate. The fix moves the initilization to PhotoBitmapLoader. Change-Id: I125115a6882df9c1c8c7e1325068958b7cdfc468
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
|
ca8fdcd23fcc53e0429abf8d4ef80e8d6d8fe6fa |
|
30-Jun-2013 |
Martin Hibdon <mhibdon@google.com> |
Update PhotoViewer so that Babel can use it The photoViewer now supports the needs of the Babel app. In particular: 1. It allows for applications to extend the PhotoBitmapLoader for their own needs. Babel needs this because it already maintains a customized image cache in memory, and we don't want to have duplicate bitmaps in memory. 2. The photoViewActivity can optionally use an animation that scales the image up from the image's original location on screen to the full size. 3. The photoViewActivity can optionally be in fullscreen mode by default, rather than switching to fullscreen when tapped. Change-Id: Id5d62f1961c1ce2b9402c7fb19583baad4d96580
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
|
a3c441f144e3acc7aa32d8236f590cf1aac179f5 |
|
29-Jun-2013 |
Andrew Sapperstein <asapperstein@google.com> |
Return when loader reset. No idea why we weren't doing this previously but we really need to be doing so. May be the cause of the recycling bug. b/8808280. Change-Id: I133a5a5c6ee96d601cd0b6f162942b173c85234a
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
|
112958e7a0493f2e692bbc40d113e98715caaab8 |
|
25-Mar-2013 |
Adam Copp <adamcopp@google.com> |
Hide spinners if airplane mode enabled whilst browsing images This change ensures loading spinners are hidden if the image cannot be loaded, such as when we enter airplane mode. The behaviour is poor upon returning from airplane mode - spinners do not show immediately, and loads may not kick off until the user scrolls around. Bug: 8407579 Change-Id: If11b4f9a453eeb2f381a77a860fb32c87dbd3b13
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
|
06d8b5e82b9b75588051a492152fda0b63f70484 |
|
08-Mar-2013 |
Mark Wei <markwei@google.com> |
When image bytes are unable to be decoded into a Bitmap (like TIFF files), we distinguish that apart from when there are no image bytes at all. In the first case, the download was complete and the file is present, but the decoding fails. In the second case, the download is still in progress. We now show an error in the first case. Bug: 8229258 Change-Id: I664a322f1656dc10d632dcdb259d817abc894047
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
|
8746927a945358bb9e515985a37cac7807261026 |
|
27-Oct-2012 |
Martin Hibdon <mhibdon@google.com> |
Make PhotoViewer use the support library Now it uses the support library for fragments and loaders, so it's compatible back to Froyo. Change-Id: I887dd57760606e22a8376cdfdf3ecf7c99295a61
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
|
0f7d1502f4f7c0b364e7644875a04fb0c90807ff |
|
30-Aug-2012 |
Mark Wei <markwei@google.com> |
Fix NullPointerException when tapping attachment. Bug: 7083179 Change-Id: I9955aeda9a0d2bb6d30ce9f7e7e3961cb47284e0
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
|
3a14814364ff1e48109d32a06bd063c66914889b |
|
30-Aug-2012 |
Mark Wei <markwei@google.com> |
Attachment image viewer should not scale images larger than original size. Bug: 7049410 Change-Id: I1ed2555203e1541f1481cae4f17f532eaa57c1cd
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
|
0c18e5deef5209d21b527a01feb6b789715eb48e |
|
21-Jul-2012 |
Andrew Sapperstein <asapperstein@google.com> |
Reloading bitmaps if cursor updates. Change-Id: I5624e533d4f35255028cd1a31508dabdb33dfe7f
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
|
8122882aaf14820bc2241605b2ab818ad358b9af |
|
27-Jun-2012 |
Ying Wang <wangying@google.com> |
Import translations. DO NOT MERGE Change-Id: Ib683da0aa64c2c63dfc672ea18b7417aded3ec5c
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
|