OSDN Git Service
Gilles Debunne [Tue, 12 Oct 2010 00:31:01 +0000 (17:31 -0700)]
am
63196c11: Merge "Changed Grid layout on home. More space at the bottom." into gingerbread
Merge commit '
63196c1162d7bf4bf253368236f9442a78067914' into gingerbread-plus-aosp
* commit '
63196c1162d7bf4bf253368236f9442a78067914':
Changed Grid layout on home. More space at the bottom.
Gilles Debunne [Tue, 12 Oct 2010 00:13:19 +0000 (17:13 -0700)]
Merge "Changed Grid layout on home. More space at the bottom." into gingerbread
Jean-Baptiste Queru [Mon, 11 Oct 2010 21:44:10 +0000 (14:44 -0700)]
resolved conflicts for merge of
35e79e32 to gingerbread-plus-aosp
Change-Id: I039355b9d5852436c8352efc5a85590e5f2bc080
Jean-Baptiste Queru [Mon, 11 Oct 2010 21:33:45 +0000 (14:33 -0700)]
Merge "Replaced /sdcard with Environment.getExternalStorageDirectory()"
Brad Fitzpatrick [Mon, 11 Oct 2010 16:40:44 +0000 (09:40 -0700)]
Serialize background async db updates
Bug:
2983765
Change-Id: I1fdd33ea8ee4fbc79a75ce0450f04d8e18915975
Brad Fitzpatrick [Sun, 10 Oct 2010 22:49:12 +0000 (15:49 -0700)]
Merge "Don't block the UI when rearranging icons." into gingerbread
Brad Fitzpatrick [Sun, 10 Oct 2010 22:42:06 +0000 (15:42 -0700)]
Don't block the UI when rearranging icons.
The pause is mostly notable when a sync is happening at the same time.
The related function addItemToDatabase() is unchanged by this CL
though as it populates item.id and would need more invasive changes
elsewhere.
Change-Id: I6538445aeb15d9efedf99f262c39f6175f7f1e0e
Jeff Brown [Sat, 9 Oct 2010 05:53:33 +0000 (22:53 -0700)]
Snap workspace back to screen on ACTION_CANCEL.
Bug:
3066123
Change-Id: Icbdf3ef241ec44b5569e7490c1b950d80699ddc8
Gilles Debunne [Fri, 8 Oct 2010 22:00:59 +0000 (15:00 -0700)]
New hotseat assets.
Change-Id: I5505d267076de39cb3fabd0fa7419adc3f619d39
Gilles Debunne [Thu, 7 Oct 2010 18:58:44 +0000 (11:58 -0700)]
Changed Grid layout on home. More space at the bottom.
Bug: http://b/issue?id=
3053235
This is a proper way to do what was done in https://android-git.corp.google.com/g/#change,71522
The longAxisEndPadding used to be equal to button_bar_height.
Increased it to match proposed mock from designers and increase space
between last row and hot seats buttons.
Change-Id: I31dfba0a3e90a30f18d42b16681592d9527517d4
Joe Onorato [Thu, 7 Oct 2010 18:42:22 +0000 (11:42 -0700)]
Merge "When the SD card comes back, we need to show the apps on it." into gingerbread
Joe Onorato [Thu, 7 Oct 2010 18:37:40 +0000 (14:37 -0400)]
When the SD card comes back, we need to show the apps on it.
The problem was that we were doing startLoader, but once the
apps are loaded, all that does is re-bind everything. Before
a recent change of mine, we were clearing mWorkspaceLoaded and
mAllAppsLoaded. But that's not good either, because it meant
that there needed to be a lock that the main thread and the
worker thread were both acquiring, which was causing ANRs.
Instead, now we schedule two messages - one to add the apps
back into the list, and one to update everything to use
those new icons.
Bug:
3065061
Change-Id: If9d36d4b55a7ba72fcf48a5ed8941bb9466bebe6
Gilles Debunne [Thu, 7 Oct 2010 18:03:55 +0000 (11:03 -0700)]
Revert "Changed Grid layout on home. More space at the bottom."
This reverts commit
372ca9736e6880013072e094f526b6fadfb288a6.
Change-Id: I5c5df72067bd17b14c8afc7b7869a50a0198f9ac
Eric Fischer [Thu, 7 Oct 2010 00:32:48 +0000 (17:32 -0700)]
Merge "Import revised translations. DO NOT MERGE" into gingerbread
Eric Fischer [Thu, 7 Oct 2010 00:13:05 +0000 (17:13 -0700)]
Import revised translations. DO NOT MERGE
Change-Id: Id10c202123114a32708d7def3942b900f1d5933b
Gilles Debunne [Wed, 6 Oct 2010 23:51:18 +0000 (16:51 -0700)]
Merge "Changed Grid layout on home. More space at the bottom." into gingerbread
Gilles Debunne [Wed, 6 Oct 2010 21:46:27 +0000 (14:46 -0700)]
New hot seat assets
Change-Id: I95ebf95f6eb0d24a88e1726acbb9e2498965d180
Winson Chung [Tue, 5 Oct 2010 15:54:32 +0000 (08:54 -0700)]
Merge "Adding more specific title for pick-application dialog." into gingerbread
Gilles Debunne [Fri, 1 Oct 2010 22:34:18 +0000 (15:34 -0700)]
Changed Grid layout on home. More space at the bottom.
Strange behavior: cell height has to be increased to increase padding.
I guess this is because the cells have to fit in the screen height and are
rescaled, with a top alignement thus creating padding at the bottom.
Bug: http://b/issue?id=
3053235
Change-Id: I727ab091a736916b7efc1c05a80c5b006bc56f67
Daniel Lehmann [Fri, 1 Oct 2010 21:30:52 +0000 (14:30 -0700)]
Sending the DIAL Intent to simulate pushing the phone-hardbutton
Bug:
3049178 Launching the phone app should always take the user to the dialer
Change-Id: I61edffa37a211e205e8b2192e6a81963eff54ee7
Winson Chung [Fri, 1 Oct 2010 20:44:56 +0000 (13:44 -0700)]
Adding more specific title for pick-application dialog.
Change-Id: I9703f80b34d05b2cfa6239652eae36d1ebcde6e5
Joe Onorato [Thu, 30 Sep 2010 23:39:50 +0000 (16:39 -0700)]
Merge "Reload everything when coming back from the SD being unmounted." into gingerbread
Joe Onorato [Thu, 30 Sep 2010 23:29:59 +0000 (16:29 -0700)]
Reload everything when coming back from the SD being unmounted.
We could do this more efficiently by only updating the packages that
have changed, but that would involve a big rewrite.
Bug:
3020854
Change-Id: Ie7e3bee20f45dc5efa93d960902e9dfb79c4a3a5
Eric Fischer [Thu, 30 Sep 2010 22:46:56 +0000 (15:46 -0700)]
Merge "Import revised translations. DO NOT MERGE" into gingerbread
Joe Onorato [Thu, 30 Sep 2010 00:47:57 +0000 (17:47 -0700)]
Merge "Add a script to pull launcher.db off the device and pretty print an html file with the contents." into gingerbread
Joe Onorato [Thu, 30 Sep 2010 00:43:46 +0000 (17:43 -0700)]
Add a script to pull launcher.db off the device and pretty print an html file with the contents.
Change-Id: I4640fad71e5f77e0dbcbe4df4204bf36a03d3562
Ying Wang [Wed, 29 Sep 2010 22:25:38 +0000 (15:25 -0700)]
Fix proguard flag file dependency.
Change-Id: Ic9f90a30833bfafb7d76dcc851a92892b9a2a9b7
Eric Fischer [Wed, 29 Sep 2010 21:34:53 +0000 (14:34 -0700)]
Import revised translations. DO NOT MERGE
Change-Id: Iadedd45343b749561216f7b2d9ef4c3de0d4034c
Gilles Debunne [Wed, 29 Sep 2010 19:12:40 +0000 (12:12 -0700)]
Merge "New assets for hot seat." into gingerbread
Joe Onorato [Wed, 29 Sep 2010 01:46:58 +0000 (18:46 -0700)]
DO NOT MERGE - the scroll drag area was too small, and should have come from a resource anyway.
Change-Id: If1304e1417cb8ba4dee8657cd619718abba277f0
Gilles Debunne [Wed, 29 Sep 2010 00:41:26 +0000 (17:41 -0700)]
New assets for hot seat.
Change-Id: I22c1e4a8b932fa48af57e2eecedb6ac4fe6c85fa
Winson Chung [Mon, 27 Sep 2010 18:33:03 +0000 (11:33 -0700)]
Adding menu item to Launcher to manage applications directly from homescreen
Change-Id: I56d726080968777eb5ccdc8826a872977cf7868c
Joe Onorato [Fri, 24 Sep 2010 23:17:21 +0000 (16:17 -0700)]
When we're launching apps, we need to always use startActivitySafely.
It's possible that the app doesn't implement the component as promised, and the launcher shouldn't
crash.
Bug:
3005141
Change-Id: Ieac51433a467fd12160247bfd281828a69f5f7d2
Eric Fischer [Fri, 24 Sep 2010 17:24:44 +0000 (10:24 -0700)]
Import revised translations. DO NOT MERGE
Change-Id: Ie0dd3e3ea930de8676d4e085721cab5844386f66
Brad Fitzpatrick [Tue, 14 Sep 2010 19:15:32 +0000 (12:15 -0700)]
Make LauncherModel.deleteItemFromDatabase write to disk async.
Fixes a bunch of StrictMode violations and removes TODOs.
Change-Id: I886bd071d4a8336c228d29c517a8ffc5223c0623
Brad Fitzpatrick [Wed, 1 Sep 2010 20:45:16 +0000 (13:45 -0700)]
Make Launcher.checkForLocaleChange async.
Logging indicated a 1.2 second improvement in Launcher start time
during boot (when single-threaded yaffs is very heavily contended).
BUG=
2947474
Change-Id: Ie72cf02c5eacb27c6d874b6d67a0bb2de7f6b74a
Joe Onorato [Tue, 31 Aug 2010 16:59:21 +0000 (09:59 -0700)]
DO NOT MERGE - Allow the workspace to swipe while it's loading.
You still can't modify the contents of the workspace while it's loading,
but this makes it appear a little bit more responsive. Launching apps
while the launcher is loading has always been possible.
Bug:
2748595
Change-Id: Icf252beaee5b801b30216202ce6032c4d565cde3
Joe Onorato [Tue, 31 Aug 2010 01:30:15 +0000 (18:30 -0700)]
DO NOT MERGE - Fix
2941495: Launcher short-cut icons don't work for apps on SD card after reboot
Bug:
2941495
Change-Id: Idf1869d33cd5c01abea5b059ca466529cee0ad93
Christian Mehlmauer [Mon, 2 Aug 2010 18:27:46 +0000 (20:27 +0200)]
Replaced /sdcard with Environment.getExternalStorageDirectory()
Change-Id: I50cc6c6ebf5db639d4fbee6a513193070de7823e
Dianne Hackborn [Sat, 24 Jul 2010 23:48:01 +0000 (16:48 -0700)]
Fix launcher updating when all of an app's activities disappear.
Also uses a more efficient way to get all activities for a package.
Change-Id: Ic360082f0a728cf1b388af18b22122bfce866149
The Android Open Source Project [Tue, 29 Jun 2010 21:34:53 +0000 (14:34 -0700)]
set up fast-forward from froyo-release to gingerbread
Change-Id: Ib51715745e382bdc0cb3130afed110a6307b7059
Joe Onorato [Mon, 21 Jun 2010 23:06:50 +0000 (16:06 -0700)]
Merge "Make the loader thread a Looper and move the package manager updates into that thread as well." into gingerbread
Kenny Root [Mon, 21 Jun 2010 01:58:37 +0000 (18:58 -0700)]
Import revised translations
Change-Id: I8b250fac67c854a118fd481466e2e28f773e2229
Joe Onorato [Thu, 17 Jun 2010 17:28:48 +0000 (13:28 -0400)]
Make the loader thread a Looper and move the package manager
updates into that thread as well.
This gets rid of the ANRs that happened because both threads were
holding mAllAppsListLock. Now mAllAppsList should only be touched
from within the worker thread.
Change-Id: Ifc4ac27e0c0a927ac66c456d097fd3d4ef6c5e1e
The Android Automerger [Fri, 11 Jun 2010 18:47:10 +0000 (11:47 -0700)]
Merge branch 'froyo' into froyo-release
Joe Onorato [Fri, 11 Jun 2010 17:54:31 +0000 (10:54 -0700)]
Merge "This variable can be checked outside the lock because it's only set from the ui thread." into froyo
Joe Onorato [Fri, 11 Jun 2010 07:14:11 +0000 (00:14 -0700)]
This variable can be checked outside the lock because it's only
set from the ui thread.
This will help the ANR in LauncherModel.onReceive because if
we're under contention, there's a good chance that we haven't loaded
yet. It won't completely fix it, but that will take a large refactoring.
Bug
2672967
Change-Id: I2c97a416767b4bb6aac0252f02e2aa2055ae8a4e
Joe Onorato [Fri, 11 Jun 2010 07:03:15 +0000 (00:03 -0700)]
Fix crash in getCurrentWorkspaceScreen.
Bug
2761789
Change-Id: I9f005c876ca20f774e6d8046e34451a7fecbe805
The Android Automerger [Thu, 10 Jun 2010 23:19:19 +0000 (16:19 -0700)]
Merge branch 'froyo' into froyo-release
Kenny Root [Thu, 10 Jun 2010 05:37:22 +0000 (22:37 -0700)]
Import revised translations
Change-Id: I1c61fee7e093d6f1dc9bb1f178ebec89378e2754
The Android Automerger [Wed, 9 Jun 2010 00:57:43 +0000 (17:57 -0700)]
Merge branch 'froyo' into froyo-release
Joe Onorato [Wed, 9 Jun 2010 00:39:37 +0000 (17:39 -0700)]
Fix the folder bug. The change that had previously fixed this got reverted somehow.
Change-Id: I308656a5b1748e8aca254410b049110afaa7affc
The Android Automerger [Tue, 8 Jun 2010 21:09:01 +0000 (14:09 -0700)]
Merge branch 'froyo' into froyo-release
Romain Guy [Tue, 8 Jun 2010 19:59:44 +0000 (12:59 -0700)]
Merge "Improve workspace's scrolling performance." into froyo
Joe Onorato [Tue, 8 Jun 2010 17:54:30 +0000 (10:54 -0700)]
Improve launcher loading performance by only doing re-binds.
This always reloads the workspace, because I think it's a less risky change and that only adds
~100ms.
Change-Id: I215b1f741f022e47ce06e78b9cfdd9967a8f1b9d
The Android Automerger [Tue, 8 Jun 2010 05:04:53 +0000 (22:04 -0700)]
Merge branch 'froyo' into froyo-release
Romain Guy [Tue, 8 Jun 2010 00:08:34 +0000 (17:08 -0700)]
Improve workspace's scrolling performance.
This is achieved by moving the 3D All Apps surface out of the screen when
it is not needed anymore. This saves us compositing costs that slow down
the drawing of the workspace.
Change-Id: I06ce1f77449fe1864517f4161913bc162c8e6b46
Daniel Sandler [Mon, 7 Jun 2010 18:59:01 +0000 (14:59 -0400)]
Load All Apps before the workspace if All Apps is showing.
This change reorganizes the increasingly Byzantine loader
thread so that the order of (workspace, allapps) can be
reversed if the user is currently looking at the all apps
view. The perceptual improvement in performance is huge if
you change the Launcher's orientation while All Apps is
visible (which forces a reload/bind of everything); now that
AA doesn't have to wait behind the workspace it
(specifically, its first batch of icons) appears much, much
faster.
Bug:
2722977
Change-Id: I07a9afd5f1cff4019f2640b082872176ba0a887e
Daniel Sandler [Fri, 4 Jun 2010 04:31:02 +0000 (21:31 -0700)]
Fix drawing glitches in 2DAA.
Bug:
2739938
Change-Id: Ifeacc3ea7995b3fa90165943bc45d701a6234098
The Android Automerger [Thu, 3 Jun 2010 23:21:09 +0000 (16:21 -0700)]
Merge branch 'froyo' into froyo-release
Daniel Sandler [Thu, 3 Jun 2010 21:12:11 +0000 (14:12 -0700)]
Merge "Make 2D All Apps work better in landscape and on hdpi." into froyo
Daniel Sandler [Tue, 1 Jun 2010 21:48:12 +0000 (14:48 -0700)]
Make 2D All Apps work better in landscape and on hdpi.
* Correct the density (or, rather, remove the density) of
the icons in the cache to ensure they're drawn px-for-px.
* Create a new landscape layout for 2DAA that aligns things
properly (viz: Home icon at right, padding tuned, 6
columns).
* Performance improvement: Make the app grid, icons, and
home icon all opaque (by setting a black background) and
move the home icon so it doesn't overlap the grid.
Change-Id: I961323e9e39cb122cdc694853706e7fcdd10142f
Daniel Sandler [Wed, 2 Jun 2010 20:29:52 +0000 (13:29 -0700)]
Don't perform collision checks for items in folders.
Bug:
2735146
Change-Id: Ie4d03b09cc75bfc176ec91be6f6f4369af5cc2a3
The Android Automerger [Thu, 27 May 2010 20:21:28 +0000 (13:21 -0700)]
Merge branch 'froyo' into froyo-release
Daniel Sandler [Wed, 26 May 2010 20:28:16 +0000 (16:28 -0400)]
Defend against overlapping items in the workspace.
Should the Launcher's database become corrupted by
mysterious forces (e.g.: third-party launchers; botched
upgrades; smoke monsters) in such a way as to cause two
items to share the same cell, we now ignore loading the
latter.
Prevents a runtime crash (http://b/
2655516).
Bug:
2655516
Change-Id: Ia514746f04f0e51b2cd07e9290589a6eab75bdd2
The Android Automerger [Wed, 26 May 2010 04:23:30 +0000 (21:23 -0700)]
Merge branch 'froyo' into froyo-release
Daniel Sandler [Tue, 25 May 2010 19:10:24 +0000 (12:10 -0700)]
Merge "Mask bitmap creation errors while dragging shortcuts." into froyo
Daniel Sandler [Tue, 25 May 2010 19:09:36 +0000 (12:09 -0700)]
Merge "Ignore requests to add items to non-existant screens." into froyo
Daniel Sandler [Tue, 25 May 2010 15:48:32 +0000 (11:48 -0400)]
Mask bitmap creation errors while dragging shortcuts.
If we're unable to create a bitmap for the drag, e.g. due to
memory pressure, give up.
Bug:
2650809
Change-Id: I5d7360dbb1bd736a629451467e93cccdfc255b67
Daniel Sandler [Mon, 24 May 2010 20:03:53 +0000 (16:03 -0400)]
Ignore requests to add items to non-existant screens.
Should avoid crashes when using Launcher2 alongside
third-party launchers that add additional workspaces.
Bug:
2709532
Change-Id: I7775b43e582346ba686524e357a2b262e9fc4dcd
Daniel Sandler [Mon, 24 May 2010 18:31:34 +0000 (11:31 -0700)]
Merge "Disable hotseat buttons if AllApps is visible." into froyo
Daniel Sandler [Mon, 24 May 2010 15:22:41 +0000 (11:22 -0400)]
Disable hotseat buttons if AllApps is visible.
Bug:
2707845
Change-Id: Ic4039f9737b3218a45bb3e8456c47927edd3fe3d
The Android Automerger [Wed, 19 May 2010 02:46:06 +0000 (19:46 -0700)]
Merge branch 'froyo' into froyo-release
Joe Onorato [Wed, 19 May 2010 01:43:51 +0000 (18:43 -0700)]
Have LauncherModel poke the gc after it's done, to give the
renderscript objects a chance to get deleted, since they aren't
in the java heap.
Bug
2685490
Change-Id: Ifff97b64585ac0f6faed0feb6362f6137682e32d
The Android Automerger [Mon, 17 May 2010 22:19:08 +0000 (15:19 -0700)]
Merge branch 'froyo' into froyo-release
Kenny Root [Mon, 17 May 2010 18:35:17 +0000 (11:35 -0700)]
Import revised translations
Change-Id: I627268e91946716036c1a37b22db48326ce7007d
The Android Automerger [Fri, 7 May 2010 17:57:56 +0000 (10:57 -0700)]
Merge branch 'froyo' into froyo-release
Daniel Sandler [Fri, 7 May 2010 15:49:29 +0000 (11:49 -0400)]
Fix
2617318 - NPE in Launcher2.
Applies the fix in change Id91712fa to widgets.
Bug:
2617318
Change-Id: I1e1dac6238a26497eacc23b161df171ae40bb588
The Android Automerger [Thu, 6 May 2010 05:11:37 +0000 (22:11 -0700)]
Merge branch 'froyo' into froyo-release
Adam Powell [Tue, 4 May 2010 22:17:11 +0000 (15:17 -0700)]
Merge "Bug
2639807 - Add smarter smoothing to home screen touch scrolling." into froyo
Joe Onorato [Tue, 4 May 2010 19:12:41 +0000 (12:12 -0700)]
Tweak locking in launcher so mLock isn't held while the slow stuff happens.
Bug
2652948
Change-Id: I9d386395278830ead5deda17b8b09e0dcfeff989
Adam Powell [Tue, 4 May 2010 18:34:24 +0000 (11:34 -0700)]
Bug
2639807 - Add smarter smoothing to home screen touch scrolling.
Change-Id: I242e11f5aec218ae2b8f80ef3babcb2836c173db
Ficus Kirkpatrick [Mon, 3 May 2010 21:16:55 +0000 (14:16 -0700)]
Merge "Update default homescreen layout to latest design." into froyo
Ficus Kirkpatrick [Mon, 3 May 2010 19:06:08 +0000 (12:06 -0700)]
Update default homescreen layout to latest design.
Change-Id: I3e5699a22103af1fa9c7ec476f4401a53771e5a0
Adam Powell [Mon, 3 May 2010 17:23:50 +0000 (10:23 -0700)]
Fix bug
2646531 - regression in home screen bitmap caching
Looks like the code path for buildDrawingCache(false) has some bugs.
This reverts to the old code path and tries to manage the creation of
those caches a bit better.
Change-Id: Ic468e9db396c51f723454dc3832e0cd1c0c82004
The Android Automerger [Mon, 3 May 2010 15:10:12 +0000 (08:10 -0700)]
Merge branch 'froyo' into froyo-release
Adam Powell [Thu, 29 Apr 2010 18:42:45 +0000 (11:42 -0700)]
Filter input events and smooth out touch scrolling. Bug
2639807
Change-Id: I71a18497862a30db5ff0f52f566fb86eae213ea3
Adam Powell [Thu, 29 Apr 2010 23:57:49 +0000 (16:57 -0700)]
Merge "Filter input events and smooth out touch scrolling. Bug
2639807" into froyo
Adam Powell [Thu, 29 Apr 2010 18:42:45 +0000 (11:42 -0700)]
Filter input events and smooth out touch scrolling. Bug
2639807
Change-Id: I71a18497862a30db5ff0f52f566fb86eae213ea3
Kenny Root [Thu, 29 Apr 2010 22:35:49 +0000 (15:35 -0700)]
Import revised translations
Change-Id: I46c56ec11d883a3df1bf43944ea66240a5ea3962
The Android Automerger [Thu, 29 Apr 2010 20:34:17 +0000 (13:34 -0700)]
Merge branch 'froyo' into froyo-release
Ficus Kirkpatrick [Wed, 28 Apr 2010 22:49:10 +0000 (15:49 -0700)]
Merge "Add Market widget to default workspace." into froyo
Ficus Kirkpatrick [Wed, 28 Apr 2010 22:08:34 +0000 (15:08 -0700)]
Add Market widget to default workspace.
Bug:
2606783
Change-Id: I8ea5e3564a21b98aadb8789e24276507c7ef46b7
Romain Guy [Wed, 28 Apr 2010 20:55:53 +0000 (13:55 -0700)]
Merge "Avoid ANR in Home by avoiding a sycnhronized call on the UI thread. Bug #
2614636" into froyo
Daniel Sandler [Wed, 28 Apr 2010 18:01:54 +0000 (14:01 -0400)]
Increase hot rectangle of trash can.
The drop region is now 70dip^2. This means it invisibly
overlaps nearby icons ever so slightly---not enough to
prevent icons being properly dropped on the workspace.
Bug:
2623734
Change-Id: I945160ef6bdfc0a4ac3cf9db57d440bad424dfc4
Daniel Sandler [Wed, 28 Apr 2010 20:41:58 +0000 (13:41 -0700)]
Merge "Updated hotseat artwork." into froyo
Daniel Sandler [Wed, 28 Apr 2010 20:32:44 +0000 (13:32 -0700)]
Merge "Hotseats: better strategy for finding the default browser." into froyo
Romain Guy [Wed, 28 Apr 2010 20:32:43 +0000 (13:32 -0700)]
Avoid ANR in Home by avoiding a sycnhronized call on the UI thread.
Bug #
2614636
Change-Id: If9ded9a2e231a429e4d0a21626b486f76fd0a3a6
Daniel Sandler [Tue, 27 Apr 2010 20:57:25 +0000 (16:57 -0400)]
Hotseats: better strategy for finding the default browser.
To do this, we invoke resolveActivity to see what activity
would result from viewing an arbitrary (but valid) URL. If
there's just one installed, or there are multiple and the
user has chosen a default handler for http:, we take that
component and launch it with CATEGORY_HOME (so as not to
upset the URL in the frontmost window/tab/what-have-you).
We also use this information to extract the localized name
of the app, which is then installed into the hotseat as the
contentDescription (for accessibility).
If there's no default and multiple options are availble,
we'll get the activity chooser instead. In this case, we
just fire off that chooser and let the user pick an app
(possibly setting a default along the way). Because the
default may change, we reload all this hotseat information
every time one of the hotseats is tapped.
Another side-effect of this approach is that until there
exists a default browser, the original URL will be sent to
the activity the user chooses from the ResolveActivity. So
we need a sensible default URL here; one can be found in
R.string.default_browser_url (similar to Browser's
R.string.homepage_base).
This change also moves the hotseat intents and icons into
arrays.xml for easier configuration.
Change-Id: I06268df8b59e0f41f1f8b0e47f823db4c44ec761
The Android Automerger [Wed, 28 Apr 2010 19:21:11 +0000 (12:21 -0700)]
Merge branch 'froyo' into froyo-release