Commit Graph

1511 Commits

Author SHA1 Message Date
Brad Fitzpatrick 700889f504 Serialize background async db updates
Bug: 2983765
Change-Id: I1fdd33ea8ee4fbc79a75ce0450f04d8e18915975
2010-10-11 10:10:40 -07:00
Brad Fitzpatrick 02e53429c4 Merge "Don't block the UI when rearranging icons." into gingerbread 2010-10-10 15:49:12 -07:00
Brad Fitzpatrick ade2f8122f 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
2010-10-10 15:42:06 -07:00
Jeff Brown 0db354cba9 Snap workspace back to screen on ACTION_CANCEL.
Bug: 3066123
Change-Id: Icbdf3ef241ec44b5569e7490c1b950d80699ddc8
2010-10-08 22:53:33 -07:00
Gilles Debunne 1a1c76e69a New hotseat assets.
Change-Id: I5505d267076de39cb3fabd0fa7419adc3f619d39
2010-10-08 15:00:59 -07:00
Joe Onorato 673aefe8b2 Merge "When the SD card comes back, we need to show the apps on it." into gingerbread 2010-10-07 11:42:22 -07:00
Joe Onorato cec583352c 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
2010-10-07 14:37:40 -04:00
Gilles Debunne d2e0ab363d Revert "Changed Grid layout on home. More space at the bottom."
This reverts commit 372ca9736e.

Change-Id: I5c5df72067bd17b14c8afc7b7869a50a0198f9ac
2010-10-07 11:04:32 -07:00
Eric Fischer fc223d969b Merge "Import revised translations. DO NOT MERGE" into gingerbread 2010-10-06 17:32:48 -07:00
Eric Fischer 8a3a0753a0 Import revised translations. DO NOT MERGE
Change-Id: Id10c202123114a32708d7def3942b900f1d5933b
2010-10-06 17:13:05 -07:00
Gilles Debunne 1639986f72 Merge "Changed Grid layout on home. More space at the bottom." into gingerbread 2010-10-06 16:51:18 -07:00
Gilles Debunne d4c008292f New hot seat assets
Change-Id: I95ebf95f6eb0d24a88e1726acbb9e2498965d180
2010-10-06 14:46:27 -07:00
Winson Chung 6a5f4d8526 Merge "Adding more specific title for pick-application dialog." into gingerbread 2010-10-05 08:54:32 -07:00
Gilles Debunne 372ca9736e 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
2010-10-01 15:36:36 -07:00
Daniel Lehmann 9d0812b2f6 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
2010-10-01 14:30:52 -07:00
Winson Chung 58f2088922 Adding more specific title for pick-application dialog.
Change-Id: I9703f80b34d05b2cfa6239652eae36d1ebcde6e5
2010-10-01 13:51:55 -07:00
Joe Onorato d98979b814 Merge "Reload everything when coming back from the SD being unmounted." into gingerbread 2010-09-30 16:39:50 -07:00
Joe Onorato 789065d26e 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
2010-09-30 16:32:11 -07:00
Eric Fischer b806823d7d Merge "Import revised translations. DO NOT MERGE" into gingerbread 2010-09-30 15:46:56 -07:00
Joe Onorato 92d8770394 Merge "Add a script to pull launcher.db off the device and pretty print an html file with the contents." into gingerbread 2010-09-29 17:47:57 -07:00
Joe Onorato 6f9d4bd7c4 Add a script to pull launcher.db off the device and pretty print an html file with the contents.
Change-Id: I4640fad71e5f77e0dbcbe4df4204bf36a03d3562
2010-09-29 17:47:13 -07:00
Ying Wang b159e77b99 Fix proguard flag file dependency.
Change-Id: Ic9f90a30833bfafb7d76dcc851a92892b9a2a9b7
2010-09-29 15:25:38 -07:00
Eric Fischer 18517d6a8e Import revised translations. DO NOT MERGE
Change-Id: Iadedd45343b749561216f7b2d9ef4c3de0d4034c
2010-09-29 14:34:53 -07:00
Gilles Debunne 5e9dbfd77a Merge "New assets for hot seat." into gingerbread 2010-09-29 12:12:40 -07:00
Joe Onorato b761f3e49a DO NOT MERGE - the scroll drag area was too small, and should have come from a resource anyway.
Change-Id: If1304e1417cb8ba4dee8657cd619718abba277f0
2010-09-28 18:47:46 -07:00
Gilles Debunne dad874b7ec New assets for hot seat.
Change-Id: I22c1e4a8b932fa48af57e2eecedb6ac4fe6c85fa
2010-09-28 17:41:26 -07:00
Winson Chung 7ad0141905 Adding menu item to Launcher to manage applications directly from homescreen
Change-Id: I56d726080968777eb5ccdc8826a872977cf7868c
2010-09-27 17:49:09 -07:00
Joe Onorato 4a79a04bcd 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
2010-09-27 10:43:16 -07:00
Eric Fischer edfd2a5605 Import revised translations. DO NOT MERGE
Change-Id: Ie0dd3e3ea930de8676d4e085721cab5844386f66
2010-09-24 10:24:44 -07:00
Brad Fitzpatrick 73013bf94f Make LauncherModel.deleteItemFromDatabase write to disk async.
Fixes a bunch of StrictMode violations and removes TODOs.

Change-Id: I886bd071d4a8336c228d29c517a8ffc5223c0623
2010-09-14 12:33:35 -07:00
Brad Fitzpatrick 319226a894 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
2010-09-01 15:44:57 -07:00
Joe Onorato fdf5fd63c6 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
2010-08-31 12:02:32 -07:00
Joe Onorato f5ed4f1141 DO NOT MERGE - Fix 2941495: Launcher short-cut icons don't work for apps on SD card after reboot
Bug: 2941495
Change-Id: Idf1869d33cd5c01abea5b059ca466529cee0ad93
2010-08-31 12:02:24 -07:00
Dianne Hackborn 2d86dfec57 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
2010-07-24 16:48:01 -07:00
The Android Open Source Project 004f9d772c set up fast-forward from froyo-release to gingerbread
Change-Id: Ib51715745e382bdc0cb3130afed110a6307b7059
2010-06-29 14:34:53 -07:00
Joe Onorato 68925c5359 Merge "Make the loader thread a Looper and move the package manager updates into that thread as well." into gingerbread 2010-06-21 16:06:50 -07:00
Kenny Root 8a3ef2ed6c Import revised translations
Change-Id: I8b250fac67c854a118fd481466e2e28f773e2229
2010-06-20 18:58:37 -07:00
Joe Onorato 3611578579 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
2010-06-18 14:40:26 -04:00
The Android Automerger 279302ea0d Merge branch 'froyo' into froyo-release 2010-06-11 11:47:10 -07:00
Joe Onorato ab66ed2e06 Merge "This variable can be checked outside the lock because it's only set from the ui thread." into froyo 2010-06-11 10:54:31 -07:00
Joe Onorato 790c2d9fc5 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
2010-06-11 00:14:11 -07:00
Joe Onorato d0afc87d96 Fix crash in getCurrentWorkspaceScreen.
Bug 2761789

Change-Id: I9f005c876ca20f774e6d8046e34451a7fecbe805
2010-06-11 00:03:15 -07:00
The Android Automerger 8d74cc034c Merge branch 'froyo' into froyo-release 2010-06-10 16:19:19 -07:00
Kenny Root a9bda02f7c Import revised translations
Change-Id: I1c61fee7e093d6f1dc9bb1f178ebec89378e2754
2010-06-09 22:37:22 -07:00
The Android Automerger 90659cda7f Merge branch 'froyo' into froyo-release 2010-06-08 17:57:43 -07:00
Joe Onorato 774b327991 Fix the folder bug. The change that had previously fixed this got reverted somehow.
Change-Id: I308656a5b1748e8aca254410b049110afaa7affc
2010-06-08 17:39:37 -07:00
The Android Automerger d10c87bcd2 Merge branch 'froyo' into froyo-release 2010-06-08 14:09:01 -07:00
Romain Guy 36354e4e73 Merge "Improve workspace's scrolling performance." into froyo 2010-06-08 12:59:44 -07:00
Joe Onorato cc67f476c0 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
2010-06-08 11:32:28 -07:00
The Android Automerger 9d31c9d39a Merge branch 'froyo' into froyo-release 2010-06-07 22:04:53 -07:00