OSDN Git Service
Owen Lin [Thu, 6 Aug 2009 07:29:34 +0000 (15:29 +0800)]
Hide controls when return from other activities.
Android (Google) Code Review [Thu, 6 Aug 2009 05:48:01 +0000 (22:48 -0700)]
Merge change 20231 into donut
* changes:
Change the task affinity of Camcorder to be different as Camera.
Owen Lin [Wed, 5 Aug 2009 09:08:17 +0000 (17:08 +0800)]
Change the task affinity of Camcorder to be different as Camera.
Chih-Chung Chang [Wed, 5 Aug 2009 08:17:38 +0000 (16:17 +0800)]
Fix
2033184: Crash on delete after downloading/previewing picture attachments.
Eric Fischer [Mon, 3 Aug 2009 23:08:24 +0000 (16:08 -0700)]
Import revised translations. DO NOT MERGE
Android (Google) Code Review [Fri, 31 Jul 2009 14:46:57 +0000 (07:46 -0700)]
Merge change 9125 into donut
* changes:
Fix bug
2022547. Show zoom buttons only when click on photo area.
Wu-cheng Li [Fri, 31 Jul 2009 06:29:08 +0000 (14:29 +0800)]
Make CropImage always fullscreen.
Owen Lin [Thu, 30 Jul 2009 02:23:30 +0000 (10:23 +0800)]
Fix bug
2022547. Show zoom buttons only when click on photo area.
Chih-Chung Chang [Fri, 31 Jul 2009 04:28:40 +0000 (12:28 +0800)]
Fix
2021864: NPE while saving picture in CropImage.
The problem is if the bitmap is passed inline, we won't have a image list
to release in onDestroy.
Chih-Chung Chang [Thu, 30 Jul 2009 09:59:09 +0000 (17:59 +0800)]
Make dpad left/right move to prev/next image.
Android (Google) Code Review [Thu, 30 Jul 2009 11:57:47 +0000 (04:57 -0700)]
Merge change 9141 into donut
* changes:
Lower the priority of the ImageGetter thread to avoid competing with the UI thread.
Chih-Chung Chang [Thu, 30 Jul 2009 11:14:04 +0000 (19:14 +0800)]
Lower the priority of the ImageGetter thread to avoid competing with
the UI thread.
Android (Google) Code Review [Thu, 30 Jul 2009 10:21:06 +0000 (03:21 -0700)]
Merge change 9085 into donut
* changes:
Fix bug
2022547. Show zoom buttons only when click on photo area.
Owen Lin [Thu, 30 Jul 2009 02:23:30 +0000 (10:23 +0800)]
Fix bug
2022547. Show zoom buttons only when click on photo area.
Wu-cheng Li [Thu, 30 Jul 2009 09:14:34 +0000 (17:14 +0800)]
Make CropImage support fullscreen extra.
b2022570. When returning from a full-screen activity to a non-full-screen one, screen jumps a little and scroll bars are partially off screen. This is a work-around to prevent the issue.
Owen Lin [Thu, 30 Jul 2009 01:46:16 +0000 (09:46 +0800)]
Revert "Use revised zoom widget, on the right in Gallery."
Ray Chen [Mon, 20 Jul 2009 08:33:41 +0000 (16:33 +0800)]
Defer bitmap rotation until it's drawn on ImageView.
Android (Google) Code Review [Wed, 29 Jul 2009 09:38:53 +0000 (02:38 -0700)]
Merge change 8958 into donut
* changes:
Fix http://b/
2017388 by handling the corner case in computeSampleSize().
Wei-Ta Chen [Wed, 29 Jul 2009 09:24:50 +0000 (17:24 +0800)]
Fix b/
2017388 by handling the corner case in computeSampleSize().
Wu-cheng Li [Wed, 29 Jul 2009 08:08:17 +0000 (16:08 +0800)]
Check storage again after receiving storage related intents.
Media scanner sends ACTION_MEDIA_SCANNER_STARTED if it is scanning internal. We need to check storage again after receiving intents.
Wu-cheng Li [Mon, 27 Jul 2009 09:44:56 +0000 (17:44 +0800)]
Show "prepareing SD card" when media scanner is scanning.
Fix
1996415.
Ray Chen [Tue, 21 Jul 2009 06:55:35 +0000 (14:55 +0800)]
Use revised zoom widget, on the right in Gallery.
Chih-Chung Chang [Mon, 27 Jul 2009 05:03:29 +0000 (13:03 +0800)]
Fix b/
1991523 by limiting the size of a bitmap when we decode a full image.
computeSampleSize() now accepts not only targetWidthOrHeight but also the size of a bitmap.
Chih-Chung Chang [Fri, 24 Jul 2009 11:06:58 +0000 (19:06 +0800)]
Remove unused code.
Chih-Chung Chang [Fri, 24 Jul 2009 10:39:58 +0000 (18:39 +0800)]
Remove unused code.
Chih-Chung Chang [Fri, 24 Jul 2009 02:58:40 +0000 (10:58 +0800)]
Simplify ImageGetter.
Chih-Chung Chang [Thu, 23 Jul 2009 02:06:33 +0000 (10:06 +0800)]
Fix
1996918: NPE in ViewImage.onClick.
Wei-Ta Chen [Mon, 20 Jul 2009 04:37:36 +0000 (12:37 +0800)]
Fix b/
1907995 by using native allocation in BitmapFactory.
Android (Google) Code Review [Fri, 17 Jul 2009 17:48:45 +0000 (10:48 -0700)]
Merge change 7584 into donut
* changes:
Capture individual camera and video startup time and output to a text file.
Android (Google) Code Review [Fri, 17 Jul 2009 05:38:50 +0000 (22:38 -0700)]
Merge change 6510 into donut
* changes:
Fix issue
1949573. In multiselect mode, don't show the select outline for touch event.
Owen Lin [Wed, 8 Jul 2009 22:13:54 +0000 (15:13 -0700)]
Fix issue
1949573. In multiselect mode, don't show the select outline
for touch event.
Owen Lin [Fri, 17 Jul 2009 00:09:24 +0000 (17:09 -0700)]
Fix the bug that the no images view will keep showning on screen even
when there are images.
The reason is that we only update (hide/show) the "no image view" in rebake,
which will only be invoked by media status changing (like scanning start,
eject SD card, and etc.) So, the bug will happen when the the image is add to
the card but there is no media status changing.
Yu Shan Emily Lau [Thu, 16 Jul 2009 21:20:32 +0000 (14:20 -0700)]
Capture individual camera and video startup time and output to a text file.
Ray Chen [Wed, 15 Jul 2009 10:38:29 +0000 (18:38 +0800)]
Rollback invalidateImage to refresh individual image instead of rebuilding whole list.
Wu-cheng Li [Wed, 15 Jul 2009 03:13:13 +0000 (11:13 +0800)]
Start preview earlier to let user see preview earlier.
This reverts commit
785cd00067fc822701aa5e43da00382352a90e99.
A workaround will be added in HAL for overlay case.
Android (Google) Code Review [Tue, 14 Jul 2009 17:49:22 +0000 (10:49 -0700)]
Merge change 6826 into donut
* changes:
Fix bug
1970161.
Android (Google) Code Review [Tue, 14 Jul 2009 16:33:16 +0000 (09:33 -0700)]
Merge change 7015 into donut
* changes:
Cancel the thread encoding in "onStop".
Chih-Chung Chang [Tue, 14 Jul 2009 08:51:53 +0000 (16:51 +0800)]
Fix the ImageGallery progress bar (the rotating circle in title).
Chih-Chung Chang [Mon, 13 Jul 2009 05:11:52 +0000 (13:11 +0800)]
Fix
1973541: The mode switcher does not correspond to the actual mode.
Owen Lin [Mon, 13 Jul 2009 23:45:23 +0000 (16:45 -0700)]
Cancel the thread encoding in "onStop".
Eric Fischer [Mon, 13 Jul 2009 22:45:27 +0000 (15:45 -0700)]
Import new translations
Ray Chen [Fri, 10 Jul 2009 10:36:48 +0000 (18:36 +0800)]
Fix the issue
1972285: The image rotation does not update in thumbnail view immediately after rotation.
Owen Lin [Fri, 10 Jul 2009 21:44:37 +0000 (14:44 -0700)]
Fix bug
1970161.
I think the reason is that we post a runner to do clean up when the
background job has been done.
However, the runner could be queued when the activity finished().
So, we first see a leak window message (because we havn't close the dialog yet)
And then see a "view not attached" exception (because we try to close
it after the activity being destroyed)
Fixed now.
Chih-Chung Chang [Fri, 10 Jul 2009 10:39:49 +0000 (18:39 +0800)]
Fix
1836138: Crash (permissions) when sharing from Email/Gmail --> Gallery --> Anywhere Else
Wu-cheng Li [Fri, 10 Jul 2009 09:38:43 +0000 (17:38 +0800)]
Revert "Start preview earlier to let user see preview earlier."
This reverts commit
20e4e11c81a37e4dcc87fe501ea853bd5b699fe3.
The original change broke overlay case.
Chih-Chung Chang [Fri, 10 Jul 2009 05:16:22 +0000 (13:16 +0800)]
Fix
1971900: Not able to delete picture using "Delete " contextual menu option.
Chih-Chung Chang [Thu, 9 Jul 2009 11:37:33 +0000 (19:37 +0800)]
Try to fix
1962530: out of memory in CropImage.
Recycle the bitmap as much as we can.
repo sync [Wed, 24 Jun 2009 06:59:48 +0000 (14:59 +0800)]
Move reverse geocoder to AsyncTask and update location information asynchronously.
Wei-Ta Chen [Thu, 11 Jun 2009 08:13:13 +0000 (16:13 +0800)]
Set bitmaps for full size images as being purgeable in viewing and reviewing images.
We increase the resolution of full size images to 2048x1536 for achieving better zoom-in quality.
Also the delay between decoding a thumbnail and decoding a full size image is set to 1000 msecs.
Chih-Chung Chang [Thu, 9 Jul 2009 02:27:02 +0000 (10:27 +0800)]
Fix
1962656: Going to gallery when sd card is full causes a crash.
Also simplify the thumbnail reading code.
I think we don't need to check the thumbnail magic being id
because all current thumbnail files should have random number
and not id. (see bug
1240638 for date).
repo sync [Mon, 6 Jul 2009 07:05:23 +0000 (15:05 +0800)]
Move ExifInterface to android.media package.
Ray Chen [Wed, 8 Jul 2009 08:54:54 +0000 (16:54 +0800)]
Revert ContentObserver in ImageGallery.
Android (Google) Code Review [Wed, 8 Jul 2009 10:56:12 +0000 (03:56 -0700)]
Merge change 6455 into donut
* changes:
Read max file size from video capture intent.
Wu-cheng Li [Wed, 8 Jul 2009 05:55:06 +0000 (13:55 +0800)]
Read max file size from video capture intent.
Fix
b1660028.
Chih-Chung Chang [Tue, 7 Jul 2009 12:01:55 +0000 (20:01 +0800)]
Draw the multiselect markers dynamically so we can avoid invalidating the thumbnails.
Owen Lin [Wed, 1 Jul 2009 00:17:40 +0000 (17:17 -0700)]
Use ReferenceQueue to improve LruCache.
Owen Lin [Tue, 7 Jul 2009 18:37:12 +0000 (11:37 -0700)]
Fix the NPE by keeping the mDbObserver in onStop(), just unregister it.
repo sync [Wed, 1 Jul 2009 10:37:14 +0000 (18:37 +0800)]
Monitor database change by ContentObserver so we can update media data incrementally and "wait dialog" is only shown when there's no image in the current bucket.
Yu Shan Emily Lau [Fri, 3 Jul 2009 01:07:17 +0000 (18:07 -0700)]
Added the memory measurement of the mediaserver in the camera image capture and video capture test cases.
Owen Lin [Thu, 2 Jul 2009 00:03:33 +0000 (17:03 -0700)]
Fix some warning shown in Eclipse.
Chih-Chung Chang [Mon, 6 Jul 2009 07:37:24 +0000 (15:37 +0800)]
Style fix.
Chih-Chung Chang [Fri, 3 Jul 2009 10:25:26 +0000 (18:25 +0800)]
Change camera latency time variables to non-static.
Chih-Chung Chang [Fri, 3 Jul 2009 07:26:55 +0000 (15:26 +0800)]
Add retry if the query fails. The query fails if the media
provider is killed.
Android (Google) Code Review [Fri, 3 Jul 2009 05:45:17 +0000 (22:45 -0700)]
Merge change 6046 into donut
* changes:
Fix
1956850: Muti-select is not usable for the last row of the images in gallery.
Owen Lin [Wed, 1 Jul 2009 22:51:45 +0000 (15:51 -0700)]
Reset the switch state in "onStart" in both Camera and Camcorder.
Chih-Chung Chang [Thu, 2 Jul 2009 11:48:11 +0000 (19:48 +0800)]
Fix
1956850: Muti-select is not usable for the last row of the images in gallery.
Chih-Chung Chang [Thu, 2 Jul 2009 10:13:35 +0000 (18:13 +0800)]
Fix
1956863: The border of the select image still stay on the screen
after removed all the images in gallery.
Chih-Chung Chang [Thu, 2 Jul 2009 09:18:24 +0000 (17:18 +0800)]
Fix
1956733: NPE in ImageManager.isImage
Chih-Chung Chang [Thu, 2 Jul 2009 09:07:20 +0000 (17:07 +0800)]
Fix
1955365: NPE in ViewImage.updateActionIcons
Chih-Chung Chang [Thu, 2 Jul 2009 08:46:30 +0000 (16:46 +0800)]
Fix
1956859: "Set as" is not working with the downloaded image.
Chih-Chung Chang [Thu, 2 Jul 2009 08:12:12 +0000 (16:12 +0800)]
Fix bug: wait for idle time before checking thumbnail only if there is still some
thumbnail to check.
Owen Lin [Fri, 26 Jun 2009 22:47:39 +0000 (15:47 -0700)]
Fixed the OOM in crop image.
The original code of "CropImage" won't wait the save action to be complete
before exiting.
We have to hide the ProgressDialog in onStop(), otherwise, if the job is done
in background(after onStop()), a "no window token exception" will be
thrown when dialog.dismiss() is called. Thus, a new MonitoredActivity is
introduced to help us handle this, hope it will be useful in other places.
Chih-Chung Chang [Wed, 1 Jul 2009 06:52:24 +0000 (14:52 +0800)]
Fix
1950477: Menu items for video review are incorrect.
Owen Lin [Tue, 30 Jun 2009 00:30:24 +0000 (17:30 -0700)]
Fix bug
1949582. If this is the last image to be deleted,
the mCurrentPosition will be -1 and getImageAt() will return null and thus
cause a NPE. If the image list is empty just return null is enough.
Owen Lin [Fri, 26 Jun 2009 18:59:58 +0000 (11:59 -0700)]
Solve task flow problems in Camera and Camcorder.
1. Let "Camera" and "Camcorder" use the same task affinity, so that there
will only one task stack in the system.
2. Finish the "Camera" or "Camcorder" activity, when switch to the other,
so that it works like the same activity.
Wu-cheng Li [Wed, 24 Jun 2009 05:33:46 +0000 (13:33 +0800)]
Start preview earlier to let user see preview earlier.
Android (Google) Code Review [Tue, 30 Jun 2009 09:05:12 +0000 (02:05 -0700)]
Merge change 5758 into donut
* changes:
Fix
1948669. The grid of multi-selected video becomes white while it is being selected
Wu-cheng Li [Tue, 30 Jun 2009 07:26:48 +0000 (15:26 +0800)]
Increase image zoom speed.
Chih-Chung Chang [Tue, 30 Jun 2009 06:37:57 +0000 (14:37 +0800)]
Fix
1948669. The grid of multi-selected video becomes white while it is being selected
Only check thumbnail when the worker thread has been idle for 1 second.
This gives the ImageBlockManager some time to figure out what to load next.
Owen Lin [Mon, 29 Jun 2009 21:47:08 +0000 (14:47 -0700)]
Chih-Chung Chang [Mon, 29 Jun 2009 07:24:13 +0000 (15:24 +0800)]
Fix
1945392. Long press a photo in gallery, choose "delete", it crashes.
Android (Google) Code Review [Mon, 29 Jun 2009 06:32:09 +0000 (23:32 -0700)]
Merge change 3805 into donut
* changes:
Enable multiselect delete.
Chih-Chung Chang [Fri, 26 Jun 2009 11:23:56 +0000 (19:23 +0800)]
Enable multiselect delete.
Android (Google) Code Review [Fri, 26 Jun 2009 07:11:18 +0000 (00:11 -0700)]
Merge change 5419 into donut
* changes:
Remove unused code in ViewImage.
Android (Google) Code Review [Fri, 26 Jun 2009 07:11:00 +0000 (00:11 -0700)]
Merge change 5228 into donut
* changes:
Improve switcher to enable drag and drop operations.
Owen Lin [Thu, 25 Jun 2009 21:58:54 +0000 (14:58 -0700)]
Remove unused code in ViewImage.
Owen Lin [Thu, 25 Jun 2009 18:12:11 +0000 (11:12 -0700)]
Retry to submit it again. It seems I changed the file "IImage" -> "Image"
before I create the commit.
Owen Lin [Thu, 25 Jun 2009 17:24:02 +0000 (10:24 -0700)]
Revert "It seems that there is no quarantee that "onActivityResult()" will be called"
This reverts commit
90bbbcbdfa4f2329dfdfda867a4bd58fa27a2840.
Android (Google) Code Review [Thu, 25 Jun 2009 16:52:28 +0000 (09:52 -0700)]
Merge change 5354 into donut
* changes:
It seems that there is no quarantee that "onActivityResult()" will be called before "onStart()". So, adding code to handle both situations. Also add checking on "mPaused" in showOnScreenControls().
Owen Lin [Thu, 25 Jun 2009 00:51:08 +0000 (17:51 -0700)]
It seems that there is no quarantee that "onActivityResult()" will be called
before "onStart()". So, adding code to handle both situations. Also add
checking on "mPaused" in showOnScreenControls().
Android (Google) Code Review [Thu, 25 Jun 2009 03:39:08 +0000 (20:39 -0700)]
Merge change 5326 into donut
* changes:
Fix Issue
1910066: Typo "Camera Medias" in Gallery group description
Android (Google) Code Review [Thu, 25 Jun 2009 03:38:54 +0000 (20:38 -0700)]
Merge change 5333 into donut
* changes:
Fix
1942091: In image/video preview, the trackball should not move the image too much and show black bar.
Chih-Chung Chang [Thu, 25 Jun 2009 03:31:11 +0000 (11:31 +0800)]
Fix
1942091: In image/video preview, the trackball should not move the image
too much and show black bar.
repo sync [Thu, 25 Jun 2009 02:56:45 +0000 (10:56 +0800)]
Fix Issue
1942097: Delete the video show incorrect toast.
repo sync [Thu, 25 Jun 2009 02:59:33 +0000 (10:59 +0800)]
Fix Issue
1910066: Typo "Camera Medias" in Gallery group description
Owen Lin [Wed, 24 Jun 2009 05:18:20 +0000 (22:18 -0700)]
Improve switcher to enable drag and drop operations.
Android (Google) Code Review [Wed, 24 Jun 2009 08:41:20 +0000 (01:41 -0700)]
Merge change 5048 into donut
* changes:
Fix several issues with ImageList.
Owen Lin [Mon, 22 Jun 2009 22:53:26 +0000 (15:53 -0700)]
Fix several issues with ImageList.
One is bug
1933327
It seems to be timing issue. We assign the value of mAllImages in only
"onCreate" and will set it to null in "onActivityResult".
I modified the code so that it won't be null after "onCreate()".
The other issue is the crop image won't . The reason is we don't clean
up the cache when we reopen the cache. It won't work for ImageListUber
for the original fix since "buildImageListFromUri" won't return ImageList
of type ImageListUber.
The final one is the "getImaegForUri", last time, I made a change but
cause review fails in Camera. But, I need the check if the given uri is
actually the same as the image list not just check the "id".
Android (Google) Code Review [Wed, 24 Jun 2009 07:31:10 +0000 (00:31 -0700)]
Merge change 5195 into donut
* changes:
Fix
1933301: NPE in ImageGallery.onImageClicked
Chih-Chung Chang [Wed, 24 Jun 2009 07:14:33 +0000 (15:14 +0800)]
Fix
1933301: NPE in ImageGallery.onImageClicked