History log of /packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e8c1e69f85efb8673d0606f3aca729a366038753 16-May-2012 Ray Chen <raychen@google.com> Fix 6259517 "0 images / videos available" toast is displayed in gallery on launch though it has images / videos

And removed sync error toast.

Bug: 6259517

Change-Id: Ib7b25176a6db290220661a2e98e4e031043201d9
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.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/app/AlbumPage.java
8e4eb7e6d69c2f22605ce96837c2b14d48d084b0 21-May-2012 Yuli Huang <yuli@google.com> Fix the detail isn't updated for the selected thumbnail.

bug:6521826
Change-Id: I1c07c10414ad45721b65583ed5f976c992d27698
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.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/app/AlbumPage.java
c2fcc7a681070e6c1d024ecf60b6a2a3e3f1a68b 03-May-2012 Yuli Huang <yuli@google.com> Don't show spinner to avoid janky transition.

bug:5406790
Change-Id: Ieea09f43d5230e1507c16001ec12b3ea6e3c3f0e
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
402237b43fd853377e5dba4e048839ad23b99d72 03-May-2012 Chih-Chung Chang <chihchung@google.com> Add camera icon for camera roll.

Bug: 6411709
Change-Id: I2476dba7edb2b763f3b7727f0034fa300cf0287a
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
c63554245d9a822a9fbe5aeda8612624434fd247 02-May-2012 Owen Lin <owenlin@google.com> Change thumbnail's position only when it is invisible.

bug:6393694
Change-Id: I33f41c3c894b4c6d28e0832cfd4badbfca3a4f64
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
b1e9fd893d62adae1f92d29dfc08bc76f8764491 30-Apr-2012 Chih-Chung Chang <chihchung@google.com> Fix Back behavior in gallery grid and remove camera preview tile.

Bug: 6411801
Bug: 6411709

Change-Id: Iebd7db06d44d315ac67eb8c5133b86044fce30c4
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.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/app/AlbumPage.java
90fe70f11b0961e1e5ae353cdf563236a55f502d 24-Apr-2012 Yuli Huang <yuli@google.com> Add prominent highlights for touch feedback.

Mimic the system UI to fade out highlights on touch releases.
bug:6145331
bug:5379176

Change-Id: I44c9245a926b2c5eb46b28d494c6393ba7f0c30c
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
48ba94ae713dbf57898cfa84ae69517da50cf7a0 17-Apr-2012 Owen Lin <owenlin@google.com> Fix NPE in SlotView.

This NPE is actually a concurrent issue. We shall lock renderring when we clean up
the slots' data. But it didn't, so it may access to null data.

Change-Id: I2a8abfbb77f83bd9a240477fa53216ce69b7774d
fix: 6302487
fix: 6308873
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
cf06397b2bc65335fb97d5788f18cad4897126a2 12-Apr-2012 Owen Lin <owenlin@google.com> Fix ANR in PhotoPage.

This bugs happens because we open too many PhotoPage(s) (and onSingleTapUp is a delayed event).
However, each of the PhotoPage need a Thread to run tile decoder. When we close one of the
PhotoPage, it will wait the tile decoder to get finished first. However, the title decoder may
still waiting in the queue and never got a chance to run.

Change-Id: I113d1150729892edb4fe36bc5a1dc131db300476
fix: 6319833
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
c3d8ac3b9504346dafc49e006b5f732dd1db21e8 06-Apr-2012 Owen Lin <owenlin@google.com> Refactor. Rename AlbumView to AlbumSlotRenderer.

Change-Id: I7d8d3586a910dac35975e4effa0d02528e2ccf98
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
31cac30e46a293f6d0901e22c6ab0d083cae7021 04-Apr-2012 Owen Lin <owenlin@google.com> Refactor. Merge SelectionDrawer with SlotRenderer.

Change-Id: Iaa50b2a78beb95fc83208a5f74cf612650cd8643
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
71632ac6c1596dd1fd477f95e268f96ad72ea572 04-Apr-2012 Owen Lin <owenlin@google.com> Fix NPE in Gallery.

bug: 6249248

Change-Id: I41851c6524163195f6296a15893d962e706b3449
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
98c2490a424da79beefbdd8a29fb90ab006c77b0 03-Apr-2012 Ray Chen <raychen@google.com> Fix b/3462852 [UI] When linking from Camera preview - App icon with 'Up' arrow should go to next level up

Change startActivity to switchState because not every MediaObject implements "getContentUri" which may
cause runtime exception.

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

Change-Id: I45cee8c32863cc65eba4c5e83e667e104cf24e42
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
2341c197b0becf99422e8ad305def77df6161714 23-Mar-2012 Owen Lin <owenlin@google.com> Remove Position and PositionRepository.

Also fix a regression introduced in previous change.

Change-Id: I534c8ca7838f3518856cf48878dd49beeb331562
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.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/app/AlbumPage.java
7260f6f74d465520e4497b23fe56f98abb0c15a2 22-Mar-2012 Owen Lin <owenlin@google.com> Refactor. Make the code simpler.

Change-Id: I2d3b7a1cfed17afcf6b7ee3e7bf1ca13ada8d9c3
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.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/app/AlbumPage.java
8cab3e872dd95e55ba34fdb94269a0c5069e72ae 20-Mar-2012 Ray Chen <raychen@google.com> Fix b/6191707 Unable to set Custom wallpaper from Home

Change-Id: I130f74c94ebf5d93922807f7fee5ae7f189a15d4
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
655f63f04638dfe31045eab1b6b4c39cc2db10db 16-Mar-2012 Ray Chen <raychen@google.com> Revert "bug #6176711: guard against null GalleryActionBar." and
fix DialogPicker's NPE issue while setting wallpaper.

Change-Id: I833ebfb04907d3a1378df98db51c96b490796a00
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
2a4306a4b3c019c50687473d931753a82912ac48 15-Mar-2012 Wei Huang <weih@google.com> bug #6176711: guard against null GalleryActionBar.

When entering Gallery app from WallPaper picker, the activity is DialogPicker, which doesn't initialize GalleryActionbar so getGalleryActionbar() returns null. Guard against using the null object.

I fixed the obvious NPE here, but Ray or Yuli should take a closer look, to see why this is broken.

Change-Id: Ic6923c388ea7b72ab402131fc3b039546509e340
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
84c220f10a643927c8a2126de8a755d8d7f7ec9e 06-Mar-2012 Ray Chen <raychen@google.com> Fix 3462852 [UI] When linking from Camera preview - App icon with 'Up' arrow should go to next level up.

Some changes in this CL:

1. ActivityState can decide whether to enable home button and show up arrow
2. ActivityState can handle home_up event on its own
3. Support getContentUri in LocalAlbum (Image/Video Roll) and LocalMergeAlbum (Camera Roll)
4. Gallery supports view action for AlbumPage (Camera Roll)

Change-Id: I85a75cdce9cbc2a877651fdec34a0180ed8e785c
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
7b83fb8e3a8978b33a6b9bfc56d85fe2c1a9cf06 22-Feb-2012 Chih-Chung Chang <chihchung@google.com> Remove unused code.

Change-Id: I167596ab023671651df298ddb2b80b7c782f4223
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
cfa105d3934c4dfa14f02b693bfa97c8d17d56a9 17-Feb-2012 Chih-Chung Chang <chihchung@google.com> Reduce memory allocation and make small improvements.

Change-Id: Iac3f302454119de6363cd5cfb158619e739b0536
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
ff951a85c3c9015ef7ccd8902e69ce88360a0cb8 16-Feb-2012 Chih-Chung Chang <chihchung@google.com> Change from fillRect to clearBuffer for pure black background.

Change-Id: Ie3da19b377f3e7926ab37c5936ce48cbb3227f92
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.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/app/AlbumPage.java
d05b0be120bb217b4f56add24a4b31bee92455b2 08-Jan-2012 Chih-Chung Chang <chihchung@google.com> Fix 5835642: Only finish the page when it's still active.

The original code can call finishState twice in a row with the calling
stack: finishState -> onPause -> clearLoadingBit -> finishState.

Change clearLoadingBit to call finishState only when it's currently active.

Change-Id: I537dbdd6ce26b26aeb565e243c4168229d4a70ef
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
fe49be45412f8d0f68343662318e73822da486c8 24-Nov-2011 Owen Lin <owenlin@google.com> Show a dialog to require updating PlusOne.

Change-Id: I1ff4f5eca90ade49b0785324b9319ef0b7d751ca
fix: 5608342
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
fbdd338d83596ba545a8a7c8105d2ad7b5df56e6 08-Nov-2011 Owen Lin <owenlin@google.com> Request sync when opening Gallery/Album.

fix: 5519437

Change-Id: I0fb60415e3a92a677ca72ee8e0b95ae57e802152
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
b86c6aa085a66ffee2a178f4b5e2426cc67ca90b 10-Nov-2011 Chih-Chung Chang <chihchung@google.com> Fix 5548567: Don't play video immediately.

Change-Id: I30e9ebf7461e12250e1ef240c157e7f59b1ce2a1
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
9170edf4071e0ef4a64e9af579a1e711447cfcfc 06-Oct-2011 Ray Chen <raychen@google.com> Fix 5417248 Gallery shows Details for the same video no matter which is selected

Change-Id: If221ac3d22adfd3a47d98923dab5c4c1e5ca263d
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
57cbaa1ef40d2215c6400f5ae4af3a09e67abb2d 30-Sep-2011 Hung-ying Tyan <tyanh@google.com> Request sync when there's no mediaItem in a mediaSet.

This is to fix the problem where media items haven't been sync'ed when the album
set or album is viewed for the first time.

+ Add MediaSet.SyncListener.
+ Make AlbumPage and AlbumSetPage implement SyncListener.
+ Implement requestSync() for ComboAlbum and ComboAlbumSet.
+ add ActivityState.isDestroyed(). This also fixes the problem where
StateManager.finishState() may be called twice.

Bug: 5337899
Change-Id: I25364c3ac25721a2650701c5d7931bfb6daa9303
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
1f4e6d14bba7290ea0268fbde28ffc664d4f7004 27-Sep-2011 Ray Chen <raychen@google.com> Fix 5341761 gallery vibrate on confirm delete

Change-Id: I819855f28246c91324ea86ab9e0ac1ec1c19783c
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
bc2154199aee16762e3758ad0cfed685323d9a9f 19-Sep-2011 Chih-Chung Chang <chihchung@google.com> Fix 5299746: New UI layout, part 2.

- Replace various icons and add xhdpi/sw600dp-mdpi versions of them.
- When user press on the thumbnails, show a color overlay on it.
- For a wide (w/h > 2) picture, add panorama overlay on it.
- Align photo count label position when there is no icon for it.
- Adjust offline page layout.

Change-Id: I327d25806e99843bfa05d3ca0e9be5a8f9375595
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
9b54e8c645d14748b7dd75e25b4db9e97e3415a9 18-Sep-2011 Ray Chen <raychen@google.com> Fix 5331012 [UI] No dropdown label when entering multi-select modes via menu > Select item(s) / group(s) / album(s)

Change-Id: Ie46432dd136447942011f3565ab7a6406c461887
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
9201679ed1c485767f2e334aa618bd733024af03 14-Sep-2011 Chih-Chung Chang <chihchung@google.com> New UI for Gallery.

Change-Id: I5f243c00ebac55a9b333a9e13d0cc9c371a85005
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
6cf807453fb58ccd4cc513ff187b306c7090e67c 28-Aug-2011 Owen Lin <owenlin@google.com> Fix several issues in Gallery2.

fix: 5189318 - use transparent background for tabs
fix: 5174277 - menu mailfunctioned after slideshow (a hack):
fix: 5153387 - wrong tab is selected in album set page

Change-Id: I68092039e566b5f7409ae509f65b227b06da16bb
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
a4f0526dc8d993fb914d0e6505e22a1f30ad0e14 26-Aug-2011 Ray Chen <raychen@google.com> Fix 5133608 [UI] Details should be displayed as a system dialog in phone UI

We need this to reset the grid drawer.

Change-Id: Iead6568db1903d7e722f0e8154388ccd8f1aee67
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
4105e22d72d7a44e67cba4a58ad88018ed664d10 24-Aug-2011 Ray Chen <raychen@google.com> Fix 5133608 [UI] Details should be displayed as a system dialog in phone UI
Fix 5132798 [UI] Details popup on tablet is incorrectly placed and should not have x icon to close
Fix 5199822 Long press and select "detail" shows details of another item

Change-Id: I0e992ded8a154edb1c7a81b75d0461d5bf309f31
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.java
bd8e025f1bb39b2be236b183ea8e78f93b308ad1 25-Aug-2011 Ray Chen <raychen@google.com> Fix 5188970 Cannot close Gallery when opened from Email/Gmail

Change-Id: I7af203a9aec8ebaf6c33fa592c996f917e0caca8
/packages/apps/Gallery2/src/com/android/gallery3d/app/AlbumPage.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/app/AlbumPage.java