History log of /frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ac61de54b49ff9d6345060f57f1063a617c0ebfd 06-Aug-2015 Khoa Ha <khoaha93@gmail.com> Zoom behavior after over-zooming and panning speed updated

"Snap back" animation after over-zooming now occurs after a
set delay. Panning deceleration was also increased. These
changes reflect how the Photos app behaves.
Change-Id: Ib9a5600b070f8efbb2c74f23aa2ef73e5d6b1b63
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
2b8f0b6ab54b0643821a527d9f6b0972d4d15fc9 17-Oct-2014 Andrew Sapperstein <asapperstein@google.com> am bcbd1144: Merge "Overzoom animation added when attempting to zoom past max scale."

* commit 'bcbd114452a8d672077e406304ebbba317509252':
Overzoom animation added when attempting to zoom past max scale.
c9d25c87e10cc773f167b60a3d7b4b05f0c819ec 17-Oct-2014 khoaha <khoaha93@gmail.com> Overzoom animation added when attempting to zoom past max scale.

For consistency, the user can scale a small amount beyond the maximum
scale and the image is zoomed out to the maximum scale upon release.

Also fixed bug where panning during a zoom out may result in bad centering.
Change-Id: Ic5edb22d87e8f761c8c87224ba0dcd34bb9084c4
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
680f4b4e1b2bdb6161e99fe49445a90427ad5f4a 17-Sep-2014 Andrew Sapperstein <asapperstein@google.com> am 656e8036: Merge "Fixed bugs related to flick trajectory and boundary collision."

* commit '656e80363682740f0344f9ec798e0d0d596d757a':
Fixed bugs related to flick trajectory and boundary collision.
b2bd703691056776a4d13af0bd3410d9046c3b1f 12-Sep-2014 khoaha <khoaha93@gmail.com> Fixed bugs related to flick trajectory and boundary collision.

1. Deceleration after flicking is now applied based on angle, instead of
equally to x and y components, preserving trajectory.

2. Image does not come to full stop when flicking into a boundary if it can
still travel in one component of the velocity.
Change-Id: I36cea8a0d2fc13e7bb20e43599f4a2ae064005d3
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
a1ab68d20b7b5ac61a1790b3fab3d92d3aafa808 29-Aug-2014 Andrew Sapperstein <asapperstein@google.com> am 4258372a: Merge "Double-tap when zoomed now zooms out to the default zoom."

* commit '4258372a2745f4139f25dc14413f9a08125802e3':
Double-tap when zoomed now zooms out to the default zoom.
0ea7a6f43890bddfff61db47074a805f7effec1f 28-Aug-2014 khoaha <khoaha93@gmail.com> Double-tap when zoomed now zooms out to the default zoom.

Double-tapping to zoom in will pad the zoom origin if it would cause the
resulting image to not fill the view and be off-center.
Change-Id: Ie4e666db9b1aedd8bf840cb6de08e78d06e179da
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
8749b62b1a7c7c8ac1d5db1dbe506e45961604b6 27-Aug-2014 Andrew Sapperstein <asapperstein@google.com> Replace == NaN with Float.isNaN. b/17107077

Change-Id: Ie5abe7120ce1e1d1892cf634f1da715061556792
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
7887d9694aef23e4a0165b338726e6a9690a709a 07-Jan-2014 Andrew Sapperstein <asapperstein@google.com> Fix b/12348405. Return null drawable.

The initial implementation of getDrawable always
returned a drawable. However, the PhotoViewFragment
used the null state for various state decisions.

This made images that weren't on device in Gmail not
show up and no downloading progress was shown. Now this
happens. Hooray.

Change-Id: I55df738f55353d9c4b599c2e497ca8ed4768c059
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
61be90be69b3489471a8f6927737e9c850ed8051 05-Nov-2013 Andrew Sapperstein <asapperstein@google.com> Fix b/11460582: Photos not rendering.

Noticed that in bindPhoto(Drawable),
we weren't always invalidating like we
are in bindPhoto(bitmap). We now are.

Change-Id: Icc90d4671cdc2a1a237917d873e736d254af9065
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
8728a3dbb1bc7b31790d1de866ab149e0d1f77b4 15-Oct-2013 Matt Keoshkerian <mattak@google.com> Expose the underlying drawable data in a PhotoViewFragment

Needed fix for b/11223896

Change-Id: I4ae0a6fec7333086df88743780a85c56368ebb92
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
4f49ea6da326194dffa0348a83d8110ac30d92e4 25-Sep-2013 Matt Keoshkerian <mattak@google.com> Update PhotoViewer to load photos as Drawable objects.

This change modifies PhotoBitmapLoaderInterface.BitmapResult to return a generic Drawable object based on either a passed in Drawable or a generated BitmapDrawable from a set Bitmap.

Change-Id: I31f7af6001539970c1adb9d45d8e3eb6a9f022a3
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
69d49ba36ecf8b6288c196f2fe5e3795dfe1486e 18-Sep-2013 Mindy DelliCarpini <mindyp@google.com> Don't scale on double tap if there is movement before an up event


bring it back now that current.jar is updated

Change-Id: I92fc7998893535120ea4ad9e693b551b4a0229fb
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
255eb43f74662cacee64d268c8c26bc62b5bf009 18-Sep-2013 Mindy DelliCarpini <mindyp@google.com> Revert "Don't scale on double tap if there is movement before an up event"

This reverts commit 7323508df106bf97cb6bd5d9aa480173558d84a3.

Change-Id: I00ac959a2a9f64d5f0c2e308315c09067042af9d
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
7323508df106bf97cb6bd5d9aa480173558d84a3 10-Sep-2013 Mindy Pereira <mindyp@google.com> Don't scale on double tap if there is movement before an up event

Change-Id: I60fc2025def88ac9b7b55ba52c93569f7cfd8f45
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
f0fac25e570ef98dd9d5df34cf8437888cd118cd 10-Sep-2013 Mindy Pereira <mindyp@google.com> Don't scale on double tap if there is movement before an up event

Change-Id: I60fc2025def88ac9b7b55ba52c93569f7cfd8f45
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
3102e82e0187363d453f4bcde00e396ef5420a46 24-Oct-2012 Adam Copp <adamcopp@google.com> Remove unused imports and variables

Removes a couple of unused imports and an unused variable

Change-Id: Ie2b0109230a3393adde69a0744af5d0f262b5b8e
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
413185316e9e6f0713185d9adc733b2768ab5aa1 21-Sep-2012 Paul Westbrook <pwestbro@google.com> am 29c041a3: am 88d18b9f: am 4054bd6d: Use gesture detector from support lib

* commit '29c041a3e41b93c7ffd8f29550df501f0b45ea02':
Use gesture detector from support lib
bdf13fd95aa92f794be827421945370c1456ea7c 21-Sep-2012 Paul Westbrook <pwestbro@google.com> Use gesture detector from support lib

Bug: 7206080
Change-Id: I9b5d332d095335f13b61c9c9ccd8152a462a9eb5
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java
da471e748028dd1d30fbb140432a897f4868f238 19-Sep-2012 Paul Westbrook <pwestbro@google.com> am dd2a57c4: am d9904217: am bd64181d: Integrate copy of GestureDetector into photoviewer

* commit 'dd2a57c446c05fe7cd8453bc249f38c03d2ab299':
Integrate copy of GestureDetector into photoviewer
190f6bd9a66ab01364451e22cb7992f86227a4c6 18-Sep-2012 Paul Westbrook <pwestbro@google.com> Integrate copy of GestureDetector into photoviewer

This allows the MR0/1 behavior to be used when Email/Gmail is
running on older versions of the platform

Change-Id: I1936d36ddb9f09a3b48d38c2ad44e70ac002fbda
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.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/views/PhotoView.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/views/PhotoView.java
6361dccee51bc01d75df08bc35b7893a98e7ed48 25-Jul-2012 Andrew Sapperstein <asapperstein@google.com> Finalized the photo viewer transitions.

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