History log of /packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
58ed4d197795147f9f4a202da00b411a6ed53bd2 21-May-2013 Doris Liu <tianliu@google.com> Fix camera controls blink on startup

Bug: 9052837
Change-Id: Ie15b812c6e6e7879d29d96a345173a2130b2fe91
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
f37648b877bf6029d7afead31e965b473114c89c 13-Mar-2013 Bobby Georgescu <georgescu@google.com> Usage statistics collection for camera module, filmstrip

Change-Id: Ib3e7dfb8948e99541f6d492c7d7bd4bfbad1e53d
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
d9b8887252a17464b4357e3699192d11c608233a 12-Dec-2012 Your Name <jreck@google.com> Merge "Remove LongSpareArray + some cleanups" into gb-ub-photos-bryce
a4eae1abb4f2547dfbda84301ee764ce35464881 11-Dec-2012 John Reck <jreck@google.com> GL packaging refactor

Change-Id: I1d7a95c4f0b91a5ba59030d57cf6865c11b497aa
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
6dc3866ac10cc6bf38e73f098fe1988d1a6eecd4 04-Dec-2012 Your Name <jreck@google.com> Remove LongSpareArray + some cleanups

Change-Id: If5bb44ebca70bd735e426aeb3d9aac2d4bac646e
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
f650ee134f5b7b61cd02bd61ae9349584c61deb4 05-Dec-2012 Michael Kolb <kolby@google.com> am 7a537732: Merge "Prevent Camera UI in Gallery" into gb-ub-photos-arches

* commit '7a5377322dcebdaad98df9a31cadc7ff0f464d8a':
Prevent Camera UI in Gallery
6bf226e45ec542eae4f766a2417bfdda625af4f0 04-Dec-2012 Michael Kolb <kolby@google.com> Prevent Camera UI in Gallery

Bug: 7668856

At startup, the PhotoView wouldn't execute the onFullScreenChanged
callback, so the Camera UI believed it was in Camera.

Change-Id: I6794c2a5a4eb06d39161a681b7a0afc27d5e4b3f
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
137c6d060f9710f1a460326f27459e89b49820c2 30-Nov-2012 Bobby Georgescu <georgescu@google.com> Improve fling to delete gesture handling

Bug: 7419862
Bug: 7301456

Allows flings to start anywhere within the width bounds
of the image, even if outside the height bounds, making
deletion of panoramas more feasible, and gestures are
filtered by length to be able to make flinging easier
while still avoiding accidental input.

Change-Id: Iac933bfee85865a718ed47eadfed76683eb771d2
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
949584340c9f5f41a6133ba06058af280490f0c8 24-Oct-2012 Bobby Georgescu <georgescu@google.com> Do not show bottom controls when undo bar is visible

Bug: 7403458
Change-Id: I1e789ebd7f08256a1ccbdb2ac9f2f9f97d0859c6
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
e6c566e7e25b7f961f501c878e98d3ca640e63d8 23-Oct-2012 John Reck <jreck@google.com> Fix NPE

Bug: 7399438

Change-Id: Ida0bcc0689d5a797e3c60c3ee51542512fbadf1e
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
41b3cff60905a96ab5b6f8e5f42bcc3bab1eb605 20-Oct-2012 Bobby Georgescu <georgescu@google.com> Fix delete and undo behavior on filmstrip

Bug: 7353749
Change-Id: Ib0abd3f71783c01b1df418dd76e674bf05e65ce7
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
e3ac74402443fb94d86054052dcaad99713bed10 19-Oct-2012 Bobby Georgescu <georgescu@google.com> Saner behavior when deleting in filmstrip mode

Bug: 7353749
Change-Id: Ic9854d205fe5ab76dd1cfe78fee314e93e1ace55
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
24958c5d4a63e1d7c49d9e7007ee10958ad23e8f 17-Oct-2012 John Reck <jreck@google.com> Change double tap scale from 1.5 to 1.0

Bug: 7287834

Change-Id: I43312825c1494e385a36a3783765de33d2b691e2
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
030f8dad6aefc42d0af39bc1b93f370937d3e2ab 11-Oct-2012 Owen Lin <owenlin@google.com> Fixes bugs in TiledTexture.

1. Upload tiles in SinglePhotoDataAdapter
2. Rebuild the upload queue after the screen nails being recycled

bug: 6399444

Change-Id: I57e756f8d1d84742bf82dd34c83baf8df89ae4cc
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
b1a28418848ce0adeb8a845a78e246b01913d176 16-Oct-2012 John Reck <jreck@google.com> Fix SRI Pano orientation

Bug: 7345511

Change-Id: I9a06f03b67ba820b86520588415ff3ab16f05829
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
3ed6ae23e43be73c83b6be3dcaafe7400a7b3355 11-Oct-2012 Bobby Georgescu <georgescu@google.com> Fix size of peripheral items when first opening filmstrip

Bug: 7327570
Change-Id: I168a0297e9ac65786dbb05c02228665a67f80dff
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
866ed7abd7960efc7986a3624414a730e17f33a6 10-Oct-2012 John Reck <jreck@google.com> Fix inverted panorama preview

Bug: 7314703
Panorama only support rotations of 0 and 90, so if it is greater
than that flip the output surface texture

Change-Id: I9885feb88d2d1c3e0dabaa7ecd8db66c2ddfb93b
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
dc55d3b1a614b95a36aab60c06f7961a800ec85a 10-Oct-2012 Bobby Georgescu <georgescu@google.com> Fix lack of snapback on very short scroll

Bug: 7318609

snapToNeighborImage returns false if it didn't
actually need to move to a neighboring image, so
use this information to correctly snapback if
needed.

Change-Id: I28bbcb5ea224957fefa3838891c4343a1d9b8aff
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
a29eeac8993b221d98cffbec5583b5cba1921c89 08-Oct-2012 John Reck <jreck@google.com> Use framework orientation

Bug: 7292373

Change-Id: I66e0c3a3b43a5d544ecc3fc9a4a04fa5521d36b2
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
639095c6bed84ab0bf9ebc7c4f8b8c944df285a1 08-Oct-2012 Bobby Georgescu <georgescu@google.com> Correct undo behavior

Bug: 7307293
Change-Id: I72f814acd3625024f1e2aeccec4abfd28ad3319b
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
3711d3ea870acba8ad83d0c51b0d03b0082ef0f0 07-Oct-2012 Bobby Georgescu <georgescu@google.com> Tune swipe to delete in filmstrip

Bug: 7277872
Change-Id: I01da98f4528b92308984e6ec7f1bc68e3e55697d
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
b1a513974d59c1dc14e004338b6795d6c3c5e5e8 04-Oct-2012 Bobby Georgescu <georgescu@google.com> Snap back photo after swipe in y-direction in filmstrip

Bug: 7283537
Change-Id: Ifee561a978d418f7a1e96f1a3ddb7cc8df53752c
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
499ac9eae0eb26eaf7ebf79fb88ba929b71c8145 03-Oct-2012 Bobby Georgescu <georgescu@google.com> Fix snapping behavior in filmstrip

Bug: 7277936
Change-Id: I57569eaac0b9e633d249754dcb3613c6c4f7ad3a
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
f4e22eb44bfae0c2a3b6570f19480c8c3535d808 03-Oct-2012 Bobby Georgescu <georgescu@google.com> Correct behavior when swiping to placeholder item in PhotoPage

Bug: 7261641
Change-Id: I54deed0f20a4673cb5470ffc128c73cddc071772
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
c1c67ea813421a6173d1dab2ad75c11b51c7976d 30-Sep-2012 Mangesh Ghiware <mghiware@google.com> Remove video play icon and tap to play behavior for panorama.

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
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
b27df4650459068b409924493bbadaf25bb7e191 28-Sep-2012 Bobby Georgescu <georgescu@google.com> Debounce after quick fling towards camera but zoom if slow

Bug: 7250026
Bug: 7213802
Change-Id: I3c900813937161744a36015469c70112f2cf356b
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
c7e3c76d6965f520a9651d309052c5f01726cd58 28-Sep-2012 Bobby Georgescu <georgescu@google.com> Show a placeholder when the camera filmstrip is empty

Bug: 7213757
Tapping the placeholder takes the user back to the
full-screen camera capture mode.

Change-Id: I844f789b8e80f34e79f4a9c366c1c244bbf1f2a5
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
743f8152a1dd6ea47bcabc6fd95b6e8d8f1cd3e5 27-Sep-2012 Wu-cheng Li <wuchengli@google.com> Several secure album changes.

- Make the lock screen photo be a standard portrait size photo
- In the filmstrip, have the first tap on the lock screen photo
take the user directly to the unlock screen.
- Switch the asset to be a "locked" lock rather than an
"unlocked" lock.

bug:7192331

Change-Id: If7541cd67cdfb711f8dd721796db3343ae91343a
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
00ccf35f8ec016b2cb8fdcf0c65ba643dca54a14 20-Sep-2012 Bobby Georgescu <georgescu@google.com> Grid/filmstrip switching behavior improvements

Bug: 7200453
Bug: 7196483
Bug: 7222179
Bug: 7224619

Changes:
- Launch camera in capture even if paused in grid/filmstrip
- Fixed behavior of filmstrip button after launching grid
from camera
- Refresh bar timeouts after swiping a photo
- Partially swiping from camera to filmstrip without lifting
finger and then swiping back no longer results in unwanted
switch to filmstrip
- Removed hacky solution to switching to filmstrip mode

Change-Id: I5cdde927e6a27a03b99a7f4883c5601bc281f4c8
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
56bdcb7272f222fde5e4c6fc133cb490b31c7667 20-Sep-2012 Bobby Georgescu <georgescu@google.com> Make ActionBar always present in filmstrip

Bug: 7196718
Change-Id: Id297f28402da20efd99a9f90376a18f041fe8448
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
83380c9f6b75603633bbec2efa1034d4de489e7b 17-Sep-2012 Bobby Georgescu <georgescu@google.com> Don't switch back to fullscreen camera when flinging

Bug: 7145903
Bug: 7050303
It was very annoying to users to fling in the filmstrip
and end up in the fullscreen camera mode, so disabling
that. Long-term, we want to be smarter about this and
do the zoom to the full-screen if it's a short swipe
rather than a fling.

Change-Id: I40ac4848a267c06fc41e161a7a292b8f03b2ef4c
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
dc10b30ba0366126ed1ad5133b36e97d76335049 11-Sep-2012 Bobby Georgescu <georgescu@google.com> Reskin: stop at first photo after swipe from camera

Bug: 6399763
Bug: 7050303
Change-Id: I433bead637416f3c6e47fdc7567bb5de7575c01c
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
e9494164bd7dd1c55c99b3ae1e842b88bf6abd78 06-Sep-2012 Chih-Chung Chang <chihchung@google.com> Do not accept fling gesture after we changed from/to filmstrip mode.

Change-Id: Ifb3d692bcf621ff02c6d4e6d91ba8484d702f905
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
a535522fa7661771351e42465c67ed70825ed2e4 07-Sep-2012 George Mount <mount@google.com> Show play icon for panorama.

Bug 7124494

Change-Id: I17fdb5d6bcab1f3997a1ab92fcf45e0309b394b3
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
7eea4d3ac59aa88d327fc0d58f5e4052f43c54c9 07-Sep-2012 Bobby Georgescu <georgescu@google.com> Reskin: switching between filmstrip and grid in album

Bug: 7050303
Bug: 6541425
Allows switching between the filmstrip and the grid views
within albums and launches camera roll in filmstrip mode
by default. Also fixes animation issue when animating from
full-screen to grid view.

Change-Id: I2a37b92c129cc090fd807973f7e3e82fed207cd3
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
cda9315a4b3fb0228cbcd3e9a18d8c90f0a8a3e0 06-Sep-2012 Doris Liu <tianliu@google.com> Fix tap to focus, back button to camera on Manta

Changed the move threshold from a hard coded value to be proportional to the size of the view.

Bug: 7080033
Bug: 7066859
Change-Id: Id7b81fb3da1783951886d43fe9a3df35186af985
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
28cb4161da5fc3756933ca67d509b8af1c6275f1 29-Aug-2012 Owen Lin <owenlin@google.com> Remove unused resources and fix some warnings.

Change-Id: I075977150c7da7650e723e29406f24ae2e23ea97
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
4d47b3472cccf84e8c71d8fb389a79bc83b321ee 29-Aug-2012 Hung-ying Tyan <tyanh@google.com> Fix pinch out gesture for film strip mode on gingerbread.

On crespo running Android 2.3.6, a pinch out gesture results in the following
call sequence: onDown(), onUp() and then onSingleTapUp(). The correct sequence
for a single-tap-up gesture should be: onDown(), onSingleTapUp() and onUp().
The call sequence for a pinch out gesture in JB is: onDown() and then onUp().
Base on these observations, a condition is added in onSingleTapUp() to filter
out the false alarm where onSingleTapUp() is called within a pinch out gesture.

Bug: 7023717
Change-Id: I010b87f95c3197a299a7d907ce32e93a1d5e958f
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
b21b8e58a604f6c701245d84b141b5b87663192b 23-Aug-2012 Owen Lin <owenlin@google.com> Uses ActionBarSherlock in Gallery

bug: 6927267

Change-Id: I1c22975d1a1f3a36510ad93e6a0cefea110ca38f
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
915c2c5b2c367df71599370613af0924bd7c4887 23-Aug-2012 Bobby Georgescu <georgescu@google.com> Ongoing reskin of Gallery app

Bug: 7050303
Moved the majority of color settings from hardcoded to
colors.xml in order to allow rapid iteration with UX input.
Started changing some colors and layouts to reflect latest
UX mocks.

Change-Id: I300338e9f75c71f3ed3f36140d16e893387f3184
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
dbb6acc204ba6f095eb0e49e1298e9ceda2c3096 19-Aug-2012 Wu-cheng Li <wuchengli@google.com> Rotate the camera screen nail correctly in gingerbread.

In gingerbread, camera screen nail is a static image.
Handle its rotation like a bitmap screen nail.

bug:6927809

Change-Id: I554483e58fc9e32399acb20f426d7ec35631b7ac
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
38155c4f4dd6f0173337eb9f3fea54803192e229 08-Aug-2012 Owen Lin <owenlin@google.com> Rotate the texture in building PhotoFallbackEffect

bug: 6525127
Change-Id: Iba348450b62190a1a2149cf0d7f20f19625cb6cf
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
7817979db0c52ffeacb951625b1e821eba303285 30-Jul-2012 Ahbong Chang <cwahbong@google.com> Code clean up.

Remove unused imports.
Remove unused fields.
Remove unnecessary cast.
Add missing override annotations.

Change-Id: Idad2e587697a5015eb5363d7b71fab9de9cc8ffb
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
14ce29ab5608daaa3d0074cdfc9fc85988537ff2 25-Jul-2012 Bobby Georgescu <georgescu@google.com> Fix for monkey-generated NPE in PhotoView from bug 6848371

In other parts of the code, there are checks for getGLRoot
returning null, and one was missing here.

Bug: 6848371

Change-Id: I3a7a1e1ea9847a43f4791de84f5f70cc27d53a1a
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
6118af9ddad8acc050133154f8f60c842c7f9bfa 22-Jun-2012 Chih-Chung Chang <chihchung@google.com> Fix the behavior of deleting the last picture.

Also fix the jank while deleting multiple pictures quickly.

Bug: 6713932, 6712555
Change-Id: I9d64d8bbdcd4ec0dc9a447a51d50f88ff27363b4
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
517e1bd25305d4e82d101a8c06be0119dde2eab3 19-Jun-2012 Chih-Chung Chang <chihchung@google.com> Fade in/out the undo bar.

The fading out happens after 3 seconds or the user swipes away.

Bug: 6610348

Change-Id: Icd4dea7b0396f26556240adab93b9e645a9f1e58
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
2ce59cbd4368eaf0f30cfea28891bd47155182cb 18-Jun-2012 Chih-Chung Chang <chihchung@google.com> Fix scaling gesture responsiveness.

Bug: 6632011
Change-Id: I9cfeafa4365354a631565f8ee4a9b53df76d06e9
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
6b891c6a3739f8c49d42f9db6fc76cb92c7c5f25 07-Jun-2012 Chih-Chung Chang <chihchung@google.com> Add swipe-to-delete gesture.

Change-Id: I992e59702f9dfff17da2f4464e48c9228d42b1b3
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
5551dfa4c4e644737785c19f10b13304f94ef2fc 01-Jun-2012 Chih-Chung Chang <chihchung@google.com> Update the screen nail size even if screen nail is still the same one.

Because the rotation value may have changed.

Bug: 6594218
Change-Id: I8da2a3041da0e27e1b80723dab8a825a2350c2dd
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
42e1fed4edd9ed1e326aab2f7969242c56812952 31-May-2012 Chih-Chung Chang <chihchung@google.com> Move to final position after view size change.

Bug: 6584188
Change-Id: If6ab23532bd7040701e358f9cdd813d2f6a71e5c
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
9f44f35c211229bc0c5ca17823f5d7b6bb3583a1 30-May-2012 Chih-Chung Chang <chihchung@google.com> Improve image size change handling.

- When the camera relative frame is set, we delay the change for camera
rectange until the next setImageSize call. This avoids the unwanted
intermediate state if we change them separately.

- Don't draw other screennails when the camera is in full screen. This
avoids showing other screennails when the image size changes.

- When the aspect ratio of the image changes, we assume the view angle
of the longer side doesn't change (so the aspect ratio change is because
the view angle of the shorter side changes). This matches what camera
preview does.

Bug: 6566612

Change-Id: I7603416f31c96ba77c96cdc2a3d0b79f8921c491
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
e6251df06f0b3c8f556043f8b725b4b19be7474d 22-May-2012 Chih-Chung Chang <chihchung@google.com> Unlock orientation only when action bar is needed.

Bug: 6482079
Change-Id: I75d96ca7957f80e9c52f35edf74127f82f194f63
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
37c605949219b8bf54c165c34d6405f5f2989f50 18-May-2012 Owen Lin <owenlin@google.com> Add a new state uploading to UploadedTexture.

This state means the texture is being uploaded in background and should
not be drawn now to prevent janking.

Sometimes, we may lose GLContext and we will need to reupload
textures again. In this case, we would like to upload these texture in
foreground instead of using TextureUploader.
(for simplicity since this won't happen too often).

bug: 6519344
Change-Id: Ic5d7547c6a0eb4b044b79aa0eb4eb52397faac03
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
49affdc4e274098a34e4eb2dbe4a89a750f1ba7f 22-May-2012 Owen Lin <owenlin@google.com> Limit the size of a ScreenNail.

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
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
c4791b7721a8417be5be33a67c8ade6e82b03a2c 19-May-2012 Chih-Chung Chang <chihchung@google.com> Fix capture animation if we are far away from the camera preview.

Bug: 6481823
Change-Id: If2511c8dd08e0483cdc3139068ee190e2b08126d
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
f5ce6aeba448f418c99736465f7a02dacd7715bb 11-May-2012 Chih-Chung Chang <chihchung@google.com> Show gray tile for screennails not loaded yet.

Bug: 6452217
Change-Id: Ied9c2e2c91f4ffe218a73ba1a123df92a2aab98a
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
43a80fd806247cb50e81bacda3ad21d210e9ae88 17-May-2012 Angus Kong <shkong@google.com> Support Panorama preview.

The panorama preview doesn't consider display rotation.

bug:6305152
Change-Id: I6389a74d3c0e64d8b6bc206e728d1088f04be225
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
616a70fdb4473d2fbd7b70772a3a82b908aeae1e 07-May-2012 Owen Lin <owenlin@google.com> Add transition animation for tapping from PhotoPage.

bug:6383694
Change-Id: Ib457d6b636dafd3f8ef7340bfa85725f14d90bd0
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
9723770a40d230092204dd685f19ff4bce6dabd5 17-May-2012 Angus Kong <shkong@google.com> Revert "Support Panorama preview."

This reverts commit 41832d9f1568c7d8227fb9ffebaf7830345cffff
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
41832d9f1568c7d8227fb9ffebaf7830345cffff 17-May-2012 Angus Kong <shkong@google.com> Support Panorama preview.

The panorama preview doesn't consider display rotation.

bug:6305152
Change-Id: I6b87c18ed8eadf1b2bf5e64437c5b290d111cbba
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
f320b8429dd5c68c117b8e9b1a36a435f4f4ff13 15-May-2012 Yuli Huang <yuli@google.com> Fix card effect shown in opening animation.

bug:6495753
Change-Id: I7a640c2dddef0b7c58e0b7d5a00cbc4aab6ec43d
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
bd7c016d728853d38f98a3c6077b7bd9b08858b9 15-May-2012 Yuli Huang <yuli@google.com> Avoid black screen when PhotoPage just starts.

bug:5367032

Change-Id: I6bd56026ec32bcee972d69855966750b9a57cdf4
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
214993dc4abf87c386123af50e3c34184ba11cb6 11-May-2012 Chih-Chung Chang <chihchung@google.com> Better data change handling for PhotoDataAdapter and PhotoView.

Change-Id: I0f67d918b95000d10786d2035286e036346bfa4e
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
3b4a8aeb0353fa18a2b5267b3952a80a6c6d4d13 09-May-2012 Chih-Chung Chang <chihchung@google.com> Handle ScreenNail size change.

Bug: 6355399
Change-Id: Ice7560c12aa06cf8ac58cc3883f0888b5c6e71a5
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
2ef46ed28b28b355d7f3f1432c7b1196b832a859 08-May-2012 Chih-Chung Chang <chihchung@google.com> Better orientation change handling.

Bug 6451117: Preview location is wrong after rotating the device quickly
Bug 6444303: The preview location is wrong when camera is started upside down on tablet
Bug 6451710: Tap to focus broken in landscape

Change-Id: I12fd57d6618ec5521ccc6efcbf65de57ff2ea3d2
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
ba12eae90b5b1a80ee002aa0df8c5c5189c4faa3 06-May-2012 Chih-Chung Chang <chihchung@google.com> Add transition for card deck effect.

Bug 6442785: Controls disappear & preview surface gets warped after deleting just taken video
Bug 6399861: Filmstrip: Pinch-out animation in fullscreen photo > filmstrip should be metaphorically consistent with the stack of cards model
Bug 6429677: Gray shadow shows up when start

Change-Id: I408cf250e67b4def20f5f15621fe57d7845c90f9
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
6575794a9c09f22d5721e212c093e0a2df376d0c 05-May-2012 Chih-Chung Chang <chihchung@google.com> Fix 6429662: Video snapshot doesn't work

Change-Id: I6414be7f00ee103b7047128fdc92e03ca87c7703
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
d9355113da391f8bbddef1d2a2126ce6edc72291 05-May-2012 Chih-Chung Chang <chihchung@google.com> Put play video icon at the same place of the screennails.

Bug: 6412197
Change-Id: Idaae46c598035639907a85f726b763b80bd9572d
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
17ffedda6e3ed57b38afbb775594cf30d83fc652 03-May-2012 Chih-Chung Chang <chihchung@google.com> Fix 6399813: tapping on a photo that isn't in the middle of the screen doesn't select it.

Also make tapping while flinging stop the scroll instead of opening the item.

Change-Id: Iefef4738d7d74b29e4594ea3ae2cb1c91e0e17ab
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
aeb3062e84ed28f0e25a73f511f287ae0a3e4294 03-May-2012 Chih-Chung Chang <chihchung@google.com> Fix NPE in onFullScreenChanged message handler.
Bug: 6430929

Also tweak the timing of showing action bar and the timing of unlock orientation.

Change-Id: I1af4703ccf99f5257e9724a20d0aa216d20e13c2
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
61f94714c3702115d2f89bb5f8829697be0c3680 02-May-2012 Chih-Chung Chang <chihchung@google.com> Show/hide action bar at the right time.

Bug: 6399476

Change-Id: I5046b2e73822ebadd94680f61d87db183b40b5c2
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
33f8567dd5003e4bb342683f3768ab7552648b02 01-May-2012 Chih-Chung Chang <chihchung@google.com> Fix the Camera controls disappearing after zooming problem.

Bug: 6392682
Change-Id: I065c52b44c02f9314e58e82846cdf22e2d940eab
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
18958c51f1412d959d52500ceefc46f987d035f3 30-Apr-2012 Chih-Chung Chang <chihchung@google.com> Don't enter film mode automatically when moving from camera preview to picture.

Also don't follow the scaling touch once we decide to change film mode, this makes the animation smoother.

Change-Id: I45f97bd8c3cc90666370afeb1c18d21dfcc87c06
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
bd141b5a51c96f6fcaddfa547f0928ce69cf0755 26-Apr-2012 Chih-Chung Chang <chihchung@google.com> Support drawing in different orientation in Gallery.

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
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
74976b1397fe34b212741bd92e30fa25aaec7ad8 26-Apr-2012 Wu-cheng Li <wuchengli@google.com> Do not use card effect for camera screen nail.

bug:6402571
Change-Id: I362e675ea4160b7b940e0da4bd018e0e8c7add57
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
a11f19872b6059d97d31c047ac752354670e1267 25-Apr-2012 Ray Chen <raychen@google.com> Fix 6376466 After deleting photo, the next one will be shown too dark
b:6376466

Change-Id: I7328215c45995d6ae1813ed861da3ad826809461
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
160e6d776daab93610b3d12413ad9ff2dd867d8b 25-Apr-2012 Chih-Chung Chang <chihchung@google.com> Don't do capture animation if we don't have Camera ScreenNail.

Also make "Back" jump to first picture instead of the previous one.

Bug: 6388263

Change-Id: Idf78363cf3952bf66c6b0688e79d99c01956cd07
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
2c6173822a612597c79be41b126367ddfbb5d518 20-Apr-2012 Chih-Chung Chang <chihchung@google.com> Add capture animation in Gallery.

Change-Id: Ibf95cc64f37a4518377e64124af6606c4f14cdaa
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
c3b2d478f9032a8decf5c6254a238fc49e41b72c 19-Apr-2012 Chih-Chung Chang <chihchung@google.com> In filmstrip, show placeholders for pictures not loaded yet.

Change-Id: I037f1f054da4a3800045d5b89724341ac22272a5
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
fb1a15559bb2a0a1c8a41efd3e0420a2a2d70590 19-Apr-2012 Chih-Chung Chang <chihchung@google.com> Allow filmstrip to scroll before the screennail is loaded.

Change-Id: I9aa7405902c4bfb7e4946cfe4e1263314a958686
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
099989b310d84fe13eff0cdf2902bb3fb0bcbd14 18-Apr-2012 Chih-Chung Chang <chihchung@google.com> Film strip should be accessible only when an image is its default state.

Change-Id: I4df0db809f6a3f8d28b4e7bbbcddc3fa19d35387
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
b8be1e0ad76b6abc0da7ead39f7a9811195d001e 17-Apr-2012 Chih-Chung Chang <chihchung@google.com> Add thumb pool the cache Bitmap used for thumbnails.

Change-Id: Ib710f2a6fc1aa86fe4abdd18d1fa7ac71396a3b4
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
b7ec5534c7b539be2397c27cfa5e8b992974c12d 02-Apr-2012 Chih-Chung Chang <chihchung@google.com> Add new filmstrip mode for PhotoView.

Change-Id: I9da9896303ced8d63a3557d5e6e9bc06fb366cf5
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
921895ba0b3511aeba053bdc0c965f9d3f62eb51 02-Apr-2012 Chih-Chung Chang <chihchung@google.com> Remove FilmStripView.

Change-Id: I45cee8c32863cc65eba4c5e83e667e104cf24e42
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
b29a27f475a2c449abdda8d4e03d30914feed8c6 22-Mar-2012 Chih-Chung Chang <chihchung@google.com> Use SurfaceTexture to show Camera preview.

Change-Id: I8bf63dfc5b969ecce51841378b093a650b6f91d8
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
534b12fd804610dd67b8109bc08ba76f31afb33e 21-Mar-2012 Chih-Chung Chang <chihchung@google.com> Patch 2 for master.

Change-Id: I8b7c9fd326c4f247a1f2129b1d64388a223d79e0
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
cb4fb7c19f20405fb5e08513e6297dffce824118 21-Mar-2012 Chih-Chung Chang <chihchung@google.com> New effect in photo browsing.

Change-Id: I12ca70f56f5c874292a7a6f38f0518bbc855ed70
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
04ac045bf8da5082bbb0bdc9ea5f9c9b5b796ad0 20-Mar-2012 Yuli Huang <yuli@google.com> Fix incorrect initial position/scale of opening animations.

1. Initial position of opening animation isn't correctly offset if the
position repository isn't properly offset by the action bar height.
2. Initial scale of opening animation should match the thumbnail instead
of using a fixed value 240.
This CL is part of efforts to fix b:6016973.

Change-Id: I620705357ba7594d43685e47488928f9fc93d9f6
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
15b351a22d02e89d882fc9fe32b3f4c512080e0a 15-Mar-2012 Chih-Chung Chang <chihchung@google.com> Create a ScreenNail interface so we can add other types of screenails.
Add a new MediaItem type to contain a ScreenNail.

Change-Id: Ia303949f3013dd48ded204eaf9ec69a102b8503e
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
3a02809c97669a157cf45bfd61d45272110d4091 14-Mar-2012 Chih-Chung Chang <chihchung@google.com> Aggregate three gesture detectors.

Change-Id: I270cd7bdeb81d9a8ea5d3aa122f44074413e7616
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
2b3ee0ea07246b859a5b75d8a6102a7cce7ec838 14-Mar-2012 Owen Lin <owenlin@google.com> Reorganize import for all files.

Change-Id: Ia9188bcde727e317e6a476caccaea562f0758b19
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
6068de20f4f19ca82ca01bef3b6dda796a79f724 01-Mar-2012 Yuli Huang <yuli@google.com> Fix b/6064909: Photo might not be snapped back correctly.

Photo might not be snapped back if the animation wasn't actually started
because of no position/scale changes.

Change-Id: I6b5e938bffd954b848cae04514a06d0427151025
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
2ce3c3bfe08fff5aee58007cc8ba8f4a50861ae2 23-Feb-2012 Yuli Huang <yuli@google.com> Fix b/5624131: Panning enlarged photo switches images by mistake.

Avoid swiping images when panning to view vertically enlarged photo.

Change-Id: Ieb72cb8f38595fbedc927e8a0380fe31532ee434
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
174cac8f92029fc2829c94f274e70793ae948931 16-Feb-2012 Chih-Chung Chang <chihchung@google.com> Make GLCanvas a bit faster.

(1) make a faster version of translate(x, y).
(2) make mapPoints() faster.
(3) avoid calling canvas.rotate() when it is not needed.

Change-Id: I364e2aa3fc9ee81c43f42f3af8b2d30a1241b482
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
95018d10aa68ecbea7ebce434733341a642510de 15-Feb-2012 Chih-Chung Chang <chihchung@google.com> Try to use less of "Long" to make the program faster.

Change-Id: I6adb870a8f2bca97318d0fbb6f42388aef4c19c1
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
a7b78e224b1808895ea2c3d42ae385526dea12aa 07-Feb-2012 Yuli Huang <yuli@google.com> Fix b/5840847: Always show 'Loading...' for corrupt pictures.

Change-Id: I040f6e4090dad3e73b86062ddefd9bb0be581bf5
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
532d93caddc91a7aa33ca113adbc0b8255d498eb 12-Oct-2011 Chih-Chung Chang <chihchung@google.com> Fix 5254974: Add EdgeEffect for PhotoView.

Change-Id: Ib9ea8fff14a932e8ec25c3f272fe0539776bb062
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
b3aab90bb37aa9cc60be32e05678ee55d6575ee8 03-Oct-2011 Chih-Chung Chang <chihchung@google.com> Fix 5319007: Add fling to PhotoView.

Change-Id: Iacda65fbe1fcb3ad245ad99e0b062606ca6792b9
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
676170e619ad59ea97d04e0edcd62b1500304845 30-Sep-2011 Chih-Chung Chang <chihchung@google.com> Simplify some calculation and add more comments.

Change-Id: I0fcb2e48ba88dc957c5454de09059a265c3dbec1
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
ec4125492f17130f65e49160a17bd437e01128a7 26-Sep-2011 Chih-Chung Chang <chihchung@google.com> Move out PositionController from PhotoView.

Change-Id: Id1088ffbd67ff5e986fdf16f70ba24f1537d10ab
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
3a54b9ae67eb7b38f19ea0bdeeef26efc0a1afa1 13-Sep-2011 Chih-Chung Chang <chihchung@google.com> Fix 5280798: Click on filmstrip during swiping causes crash.

After swiping animation finishes we move to the previous
picture. But if during the animation the user clicks the first
thumbnail on the filmstrip, we will have no previous picture
to move to.

Now disallow clicking on the filmstrip during the swiping animation.

Change-Id: Ie910c346cbf35543fedb6812b04c8e78faab0d0f
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java
f9a0a4306d589b4a4e20554fed512a603426bfa1 17-Aug-2011 Owen Lin <owenlin@google.com> Initial code for Gallery2.

fix: 5176434

Change-Id: I041e282b9c7b34ceb1db8b033be2b853bb3a992c
/packages/apps/Gallery2/src/com/android/gallery3d/ui/PhotoView.java