summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui
Commit message (Collapse)AuthorAgeFilesLines
* Do not use ShareActionProvider before API 14.Wu-cheng Li2012-08-012-15/+45
| | | | | | | | Use simple share intent before API 14. bug:6706723 Change-Id: I47930f0b81c7c8c1943054964a093967a7704bf1
* Manually transform the event coordinates on older platforms.Chih-Chung Chang2012-08-011-1/+94
| | | | Change-Id: I070b27112ea028f2a1596dcdfa480537765174b9
* Fix some lint warnings in Gallery.Owen Lin2012-07-301-0/+2
| | | | | | | 1. Implement our own openPipeHelper 2. Add @TargetApi to TileImageViewAdapter Change-Id: I74dca78c4c4f18e0f782afad02d5ba9b410a503e
* Code clean up.Ahbong Chang2012-07-3021-15/+85
| | | | | | | | | Remove unused imports. Remove unused fields. Remove unnecessary cast. Add missing override annotations. Change-Id: Idad2e587697a5015eb5363d7b71fab9de9cc8ffb
* Use actual selection for album/photo detailsMichael Kolb2012-07-262-8/+7
| | | | | | Bug: 6533154 Change-Id: I21ce95d79567396840f08095b986ecc54263a295
* Fix for monkey-generated NPE in PhotoView from bug 6848371Bobby Georgescu2012-07-251-0/+1
| | | | | | | | | In other parts of the code, there are checks for getGLRoot returning null, and one was missing here. Bug: 6848371 Change-Id: I3a7a1e1ea9847a43f4791de84f5f70cc27d53a1a
* Use our own OverScroller for backward compatibility.Owen Lin2012-07-241-1/+1
| | | | Change-Id: Ibcf48a638ab716116d1ce2ff8c2686741ca0a996
* Make CustomMenu compatible with API level 10.Owen Lin2012-07-174-117/+271
| | | | | bug: 6802855 Change-Id: I230c91bd9744935a181881131dcd2275ed89d819
* Only use SurfaceTexture.release and setIconAttribute on newer platforms.Chih-Chung Chang2012-07-131-1/+8
| | | | | | Bug: 6706784 Change-Id: Ic1bb2bb27c3184d791de566d88dbade039fb9d87
* Avoid using setSystemUiVisibility in old platforms.Yuli Huang2012-07-061-0/+2
| | | | | | bug:6785569 Change-Id: I0a19ab2818b6f34d530c5d65e781d3168533d44f
* Don't test the EXTRA_LOCAL_ONLY before HC.Owen Lin2012-07-051-4/+2
| | | | Change-Id: Idebb2aba994e38cf7eead795f1834ff98eaec27d
* Remove dependencies on APIs only exist on newer platforms.Chih-Chung Chang2012-07-033-6/+19
| | | | Change-Id: I606a23863247454051dd183ddf6b77f6bc882685
* Don't reuse bitmap before HoneyComb.Owen Lin2012-07-034-10/+17
| | | | Change-Id: I0df9bf0a8f43e28ed25b436d4c584dc3ceb43c1d
* Avoid using View.SYSTEM_UI_FLAG_LOW_PROFILE.The Android Open Source Project2012-07-021-4/+2
| | | | | | | Use View.STATUS_BAR_HIDDEN instead. Bug:6706727 Change-Id: I0324a251b10eba11350f1813ee975d493bbcfafa
* Do not use NfcAdapter API in old platforms.Yuli Huang2012-06-291-10/+14
| | | | | bug:6698904 Change-Id: I8cab312a212e4cba43187a73bc76d3f2164527a9
* Don't use Build.VERSION_CODES.Owen Lin2012-06-281-2/+1
| | | | | | | | Since they won't be available on old platform. bug: 6752318 Change-Id: I55a9e83dbf05b93c83c68cb31f6edcbc29793283
* Don't reuse bitmaps in BitmapRegionDecoder before JB.Owen Lin2012-06-282-5/+58
| | | | Change-Id: I8a2f520f98116af6861fa2cd1460e6f848bbb4e4
* am 64cebdd1: am 6118af9d: Fix the behavior of deleting the last picture.Chih-Chung Chang2012-06-261-13/+53
|\ | | | | | | | | * commit '64cebdd1eebd2c001e6680f247c6f741889ad989': Fix the behavior of deleting the last picture.
| * Fix the behavior of deleting the last picture.Chih-Chung Chang2012-06-261-13/+53
| | | | | | | | | | | | | | Also fix the jank while deleting multiple pictures quickly. Bug: 6713932, 6712555 Change-Id: I9d64d8bbdcd4ec0dc9a447a51d50f88ff27363b4
* | Merge "Use public OverScroller() instead of a hidden one.."Pin Ting2012-06-251-8/+8
|\ \
| * | Use public OverScroller() instead of a hidden one..Pin Ting2012-06-231-8/+8
| | | | | | | | | | | | | | | Bug:6698374 Change-Id: I3a97d0b4bbfb5e2a1e9f4a656d39db636defcdbd
* | | Guard the use of SYSTEM_UI_FLAG_XXXX with TargetApiOwen Lin2012-06-221-5/+11
| | | | | | | | | | | | | | | | | | bug: 6698718 Change-Id: I6962f0128ce2bd57658b7f3b77d2bc150eff1f60
* | | am 254a6b42: am 82220026: Merge "Fade in/out the undo bar." into jb-devWei Huang2012-06-202-3/+112
|\ \ \ | |/ / |/| / | |/ | | * commit '254a6b42372179bcc9cf6166639325d11411be77': Fade in/out the undo bar.
| * Fade in/out the undo bar.Chih-Chung Chang2012-06-202-3/+112
| | | | | | | | | | | | | | | | The fading out happens after 3 seconds or the user swipes away. Bug: 6610348 Change-Id: Icd4dea7b0396f26556240adab93b9e645a9f1e58
* | Move LongSparseArray into Gallery for unbundling.Owen Lin2012-06-201-1/+1
|/ | | | Change-Id: Ifa0d06818a2d21bd8ddeabe808d792f39c31322f
* Merge "Fix Gallery glitch due to ColorTexture." into jb-devWei Huang2012-06-181-1/+1
|\
| * Fix Gallery glitch due to ColorTexture.Owen Lin2012-06-191-1/+1
| | | | | | | | | | | | | | | | | | Change the initial value of mTextureTarget to GL_TEXTURE_2D, since it is default enabled. bug:6668616 Change-Id: I4bf475ca1a02fed3371e8223003a10e88ce8d519
* | Fix scaling gesture responsiveness.Chih-Chung Chang2012-06-182-7/+16
| | | | | | | | | | Bug: 6632011 Change-Id: I9cfeafa4365354a631565f8ee4a9b53df76d06e9
* | Add swipe-to-delete gesture.Chih-Chung Chang2012-06-187-139/+750
|/ | | | Change-Id: I992e59702f9dfff17da2f4464e48c9228d42b1b3
* Don't display loading text when loading album sets.Yuli Huang2012-06-111-5/+0
| | | | | bug:6635606 Change-Id: I55f0dafd5ead8455ed8bee1f03c06ca03662ebbd
* Update the screen nail size even if screen nail is still the same one.Chih-Chung Chang2012-06-011-2/+1
| | | | | | | Because the rotation value may have changed. Bug: 6594218 Change-Id: I8da2a3041da0e27e1b80723dab8a825a2350c2dd
* Improve scale gesture snapback.Chih-Chung Chang2012-05-311-23/+48
| | | | | | | | | If the picture is zoomed-in, we want to keep the focus point stay in the same position on screen, so we need to adjust the target mCurrentX value. Bug: 6563619 Change-Id: I87b23da99aced1490187e550bd43fad733122577
* If the focused box was at minimal scale, we try to make it theChih-Chung Chang2012-05-301-0/+9
| | | | | | | minimal scale under the new view size. Bug: 6584425 Change-Id: I7dcc748cb3659a06f2ca4d8550d075fdda2949fa
* Move to final position after view size change.Chih-Chung Chang2012-05-302-3/+8
| | | | | Bug: 6584188 Change-Id: If6ab23532bd7040701e358f9cdd813d2f6a71e5c
* Improve image size change handling.Chih-Chung Chang2012-05-292-60/+101
| | | | | | | | | | | | | | | | | | - 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
* Force to stop scrolling in filmstrip mode.Angus Kong2012-05-241-0/+1
| | | | | bug:6554106 Change-Id: I4305ce7068a36e72a325996a88c1d227a2d2b20c
* Merge "Put a black View in front of SurfaceView." into jb-devChih-Chung Chang2012-05-231-0/+17
|\
| * Put a black View in front of SurfaceView.Chih-Chung Chang2012-05-221-0/+17
| | | | | | | | | | | | | | This prevents SurfaceView from being transparent before the first draw. Bug: 6507478 Change-Id: I2170f23d4c9844bfc3854d6120f5e72cc0d591ca
* | Merge "Recycle textures when we don't need them." into jb-devWei Huang2012-05-226-35/+38
|\ \
| * | Recycle textures when we don't need them.Owen Lin2012-05-226-35/+38
| |/ | | | | | | | | bug: 6307447 Change-Id: Id0c1abab54e1fbb75364dffda9f1f72d6b39310b
* / Unlock orientation only when action bar is needed.Chih-Chung Chang2012-05-222-46/+34
|/ | | | | Bug: 6482079 Change-Id: I75d96ca7957f80e9c52f35edf74127f82f194f63
* Add a new state uploading to UploadedTexture.Owen Lin2012-05-2213-36/+62
| | | | | | | | | | | | | 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
* Hide status bar in lights out mode.Chih-Chung Chang2012-05-221-1/+5
| | | | | Bug: 6451200 Change-Id: I6ad5ffc203fd8e6be9191ba13a4a99eb716c4734
* Reuse bitmap to prevent GC in TiledImageView.Owen Lin2012-05-224-77/+96
| | | | | bug:5948093 Change-Id: Iad89c5809bde0de5409752330f607aab153dceba
* Limit the size of a ScreenNail.Owen Lin2012-05-224-8/+26
| | | | | | | | | | | | | 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
* Fix 6360834 Select All is shown in place of Deselect all optionRay Chen2012-05-222-11/+24
| | | | | | | | | | The CL changes the SelectionManager's toggle method so it changes itself to inverse selection mode when all items are already selected, and onSelectionModeChange will be triggered so the listener can update the selection menu (Select all/Deselect all) and ActionBar. Change-Id: I9aa5507067415e52f6800c254ecb4d68e7395ffa b: 6360834
* Fix capture animation if we are far away from the camera preview.Chih-Chung Chang2012-05-212-17/+42
| | | | | Bug: 6481823 Change-Id: If2511c8dd08e0483cdc3139068ee190e2b08126d
* Use View.setSystemUiVisibility to enter/leave lights-out mode.Chih-Chung Chang2012-05-172-0/+7
| | | | | | Bug: 6451200 Change-Id: I8e27b3e5eedfa2652f06dfc8f377c9cef8100160
* Merge "Show gray tile for screennails not loaded yet." into jb-devChih-Chung Chang2012-05-176-118/+176
|\
| * Show gray tile for screennails not loaded yet.Chih-Chung Chang2012-05-176-118/+176
| | | | | | | | | | Bug: 6452217 Change-Id: Ied9c2e2c91f4ffe218a73ba1a123df92a2aab98a