History log of /frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
535ffb18682c17d08be17aae5a31c11bf9d44ae5 16-Nov-2012 Mike Dodd <mdodd@google.com> Need one more initLoader in a runnable.

b/7544801

Change-Id: Ieffca5389f0b560b041f96a8daf363302f53f7ad
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
fc3a6f46f375ef9347f57b88fd7e0c8b62ce1058 15-Nov-2012 Martin Hibdon <mhibdon@google.com> call initLoader in a runnable

b/7544801
Apparently, calling initLoader() from inside onLoadFinished()
is no good when using the support library. Now we post a
runnable to the main handler to call initLoader()

Change-Id: Idedfad5f3be0aecc55ca0f3d593c2df96482da77
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
bf77f3b89ad05406eecb30c2ea9390f7e921de32 13-Nov-2012 Martin Hibdon <mhibdon@google.com> Make some static members protected

Change-Id: I9b2a1e177c369246bc3070a8ebdf5aebb70cfc2a
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
934bd9e0b4b3fcf7730325fa416b8c162141f7e9 09-Nov-2012 Martin Hibdon <mhibdon@google.com> Make some members protected

This allows users to extend PhotoViewFragment and
PhotoPagerAdapter.

Change-Id: I7945b33116601fe23f84723f14c76634c2219f52
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
399fe3d995ed4366a18c7ce6632b3014284df57a 30-Oct-2012 Martin Hibdon <mhibdon@google.com> Remove PhotoViewFragment's dependency on PhotoViewActivity

Now, there is a interface called PhotoViewCallbacks
that PhotoViewFragment depends upon. This way other
users can use PhotoViewFragment without using
PhotoViewActivity.

Change-Id: Ibbda93d2e0226bcc993ef98be1de7cf3a323f41a
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.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/fragments/PhotoViewFragment.java
edad0e0512af73ea89b85c5e4568a42bdae3f539 23-Oct-2012 Adam Copp <adamcopp@google.com> Fix scale popping by disabling zoom on thumbnails

In order to prevent the situation where a user scales a low-res image in
the image viewer before the new image has loaded, we disable the scaling
and panning of low-res images.

This is desirable because when the high-res image loads, it will "pop"
back to it's default scale and pan settings.

In the longer term I would like to fix this problem by making high-res
images load in at the current scale and pan settings. This is a much
quicker fix, however.

Bug: 7338705

Change-Id: I0c8f3dc5a7b29943db9c03e9c82cc3cee5ce2734
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
2aadb54327f77df1468826249ba63b91b65d8090 21-Sep-2012 Adam Copp <adamcopp@google.com> Merge "Add option to permenantly show ProgressBar"
075e0938e1413b6743f51baa5260cd9c8dea0711 20-Sep-2012 Mark Wei <markwei@google.com> am 05783789: am da78c1dc: am c907eecd: Prevent NPE while viewing photo from attachment.

* commit '057837890de13cc9fd6909f4c4a69abec388a34d':
Prevent NPE while viewing photo from attachment.
ae78bbd1c97e702147b29966903ca6e08ed3616f 13-Sep-2012 Adam Copp <adamcopp@google.com> Add option to permenantly show ProgressBar

In order to indicate to the user that more content is loading, the
provider can provide an image with the loading field set and null as it's
url. In this case, we will not try loading any image, and will just show the
ProgressBar.

Something like this is nessecary in Velvet, where we wish to load
infinite images.

Change-Id: Ib26412a579abdbe7fbd338b99ff39f4d1c13f806
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
2539f2ef0fa351d40551dda5ba0b543b2a042b0f 19-Sep-2012 Mark Wei <markwei@google.com> Prevent NPE while viewing photo from attachment.

Bug: 7189283
Change-Id: Ibcb98ae13cf801a6934e0ed4efb4c5349678dcce
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
524ac65920b684ca4602e23981cb976e2bab0f0d 17-Sep-2012 Mark Wei <markwei@google.com> am 34672da4: am 4030071b: am 697c046e: Prevent NPE in Gmail while viewing photo from attachment

* commit '34672da452ddf07347d2e9fc02f6d66c954ebba3':
Prevent NPE in Gmail while viewing photo from attachment
c4d9382e8e52e1122d51f52402c6c4a609a785d6 17-Sep-2012 Mark Wei <markwei@google.com> Prevent NPE in Gmail while viewing photo from attachment

Bug: 7174197
Change-Id: I29ca226b5134888dbe3488f859d9790fe1388984
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
1389ae2ea3376b317e4810f9e3b123a0cb5ac008 11-Sep-2012 Adam Copp <adamcopp@google.com> Do not show loading bar after thumbnail has loaded

After talking to the designers for Google Now, who have said they talked
to the designers from gallery app, it appears that we should not show
the loading spinner once the thumbnail has loaded.

Let me know if this is orthogonal to the behaviour you would like in the
gmail app, and I can write a more involved patch with an overridable
callback to decide wether to show the spinner or not.

Change-Id: I77a3f2e2487d469ab47e45c7a94942f831528d41
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
91dbfd25cc234de393ae22fc39a832a6335e1bc2 04-Sep-2012 Adam Copp <adamcopp@google.com> Add parameter for max initial scale factor

you can now pass EXTRA_MAX_INITIAL_SCALE into PhotoViewActivity in order
to specify the maximum initial scale of images displayed. This parameter
defaults to 1x if now supplied, so images will not be displayed larger
than their actual size by default.

This allows the gmail team to resolve 7049410 whilst velvet can keep
something like the old behaviour (which is more natural for their app)

Bug: 7049410
Change-Id: I7d230666ca50a4634d8436519ed280cc6e558ee3
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
bd8b47b147f29f196f37d66ccb561d40414ab5b6 22-Aug-2012 Adam Copp <adamcopp@google.com> Add HTTP uri handling & fetch thumbnail first

If a http:// or https:// url is specified as the thumbnail uri or
regular uri for an image, we attempt to fetch it over the internet.

Also, changed the order of loading so that we always attempt to fetch
the thumbnail image before we fetch the regular image. This aids in the
http:// uri case, since it should take significantly less time to be
presented with a thumbnail than the full image.

Finally, finishes the photo viewer activity when the "top" button on the
action bar is pressed, unless a custom override has been added.

These 3 changes could be seperated into different patches if you would
like

Change-Id: Iddc8cc6bef3f9e66198dfb98eb2f7bd309023b3f
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
9556f61c11991d6e955cfd68ca53f4f489dfa8c5 14-Aug-2012 Paul Westbrook <pwestbro@google.com> Fix some photo view problems

Make sure to stop the indeterminate progress bare when we can't
load an image

Bug: 6956516
Change-Id: Ifb69ca2e08a8ddfb351989d8e276e7fb6e3b06e5
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
150e623129eef49467f1d6f67649e4636a4513f2 03-Aug-2012 Andrew Sapperstein <asapperstein@google.com> Enabled optional support for showing progress.

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
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
1abd4654c2eeacc7d854a438a9c72d7239278bea 30-Jul-2012 Andrew Sapperstein <asapperstein@google.com> ActionBar now auto-hides like Gallery's version.

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
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
9007d640832f674a9d65058a3c2a484c078d239e 27-Jul-2012 Andrew Sapperstein <asapperstein@google.com> Showing a default preview photo.

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
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
928a39fb533255b34145285fabbd4f51961df63a 24-Jul-2012 Andrew Sapperstein <asapperstein@google.com> Support showing previews in the photo viewer.

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
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.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/fragments/PhotoViewFragment.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/fragments/PhotoViewFragment.java