History log of /packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c402cd9992d431b6beacdf3c75e31cf103e230cb 20-May-2013 Michael Jurka <mikejurka@google.com> Fixing slow binding when returning to Launcher

Bug: 8978842
Bug: 8660324

Change-Id: Idfa37c05ed299faa465ea66de4b43d30da77ecbc
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
c7700af21f7b1df939fce22f4ab5072b3ea29b66 14-May-2013 Michael Jurka <mikejurka@google.com> Fix bug where apps weren't appearing on workspace after being installed

Bug: 8707110

Change-Id: Ib50e0c600a4a77450127f3947aa894346dc99a5a
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
83892cc0768bd6d7f0827886e9e7a2eb3eed2b01 02-May-2013 Winson Chung <winsonc@google.com> Fixing issue where updating the visibility of one application can trigger all icons to disappear. (Bug 8757421)

- Also queueing bindComponentsRemoved() and bindPackagesUpdated() to wait for resume (Bug 8594153)

Change-Id: I44028fe79f6fa6bcd6b829e36f3f5b9ed756dc4d
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
d9cb4a124ac5c83080ace5ac92980df9c6f49e8e 19-Mar-2013 Michael Jurka <mikejurka@google.com> Fix SQLite crashes in Launcher

We were using multiple SQLiteOpenHelpers, which
causes problems; this change switches us to using
only one

Bug: 8346109

Change-Id: If7d4dff3d34edb38d9586d3b0f4e8e1747a71a75
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
05713af127d765cc28a8b2fd548a90347c90d6cb 23-Jan-2013 Michael Jurka <mikejurka@google.com> Cache widget previews in a DB

- Smoother All Apps scroll performance

Change-Id: Id2d31a45e71c63d05a46f580667ad94403730616
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
3c1681d5f7d56af5b25126d1c2b2ba7aa799deca 15-Nov-2012 Michael Jurka <mikejurka@google.com> Cleaning up unused code
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
28b3e10fdea4d719b46d2e0da9a916bacc238fd1 05-Oct-2012 Adam Cohen <adamcohen@google.com> Removing db corruption exceptions, logging instead (issue 7112132)

Change-Id: I5fd169ba53a88797723997d25399b39b0468864a
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
5524b4957fc7c1c858037327429411efdb8fe7d6 03-Oct-2012 Brian Muramatsu <btmura@google.com> Specify workspace resource in preload broadcast

Bug 7203884

Allow specifying the workspace XML layout in the PRELOAD_WORKSPACE
broadcast.

Change-Id: Iec01c6fa2dde4635f624f040b0772ee11fcd88dc
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
b2ae8acc0c65a5464a4782ee43e0594a15b9cc16 21-Sep-2012 Michael Jurka <mikejurka@google.com> Try to fix RTE when updating shortcuts

Bug: 6529398
Change-Id: Ib88eda5dc1eaf72aae161b25b080197b1049e824
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
1190487e15325e371c6c18181b1a5ef7ab2a79e6 18-Sep-2012 Winson Chung <winsonc@google.com> Fixing issue where we were collating labels based on an old Locale. (Bug 7133873)

Change-Id: Ic1366f06020d1e405a6800386472a8832d683c5e
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
8a4351063f02c0e8d64ee3ace651b227e9f8321f 31-Aug-2012 Winson Chung <winsonc@google.com> Fixing issue where we were not removing items from LauncherModel and only the add-queue. (Bug 7078244)

Change-Id: I5660b447521646f820fb2497f327e965d99ac207
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
81b52252796625dcbadc9f8b908f8d8a284565c0 28-Aug-2012 Winson Chung <winsonc@google.com> Ensuring that unbind calls are not queued in the worker thread and executed subsequently on the main thread. (Bug 7001531)

Change-Id: I677242c0952d6385ca229ba300fdd5a2a7908a8a
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
8165f0dd202a2c0fbf0816f7613d66938955dc76 26-Jul-2012 Ed Heyl <ed@google.com> resolve conflicts w/4f174f1d27adbde6f50e11ee3a8eaf162a030284

Change-Id: I7ecce86e58af545aa18ea25e16978a1dce9dab8e
90abcc94258ba9d9c8b68ac9764b6ab1eba12985 25-Jul-2012 Ed Heyl <ed@google.com> resolved conflicts w/0ede734d0780a968c9c345f99a18f9f8b9fc02cd

Change-Id: I50900698a590e8d84a6cbcc560f95209d3a6d110
c93e5ae12018bb214099ff88a48cc21580aec4c3 24-Jul-2012 Winson Chung <winsonc@google.com> Binding AllApps synchronously. (Bug 6855061)

- Also ensuring that we restore to the settling page index if it is in motion

Change-Id: I9c6760383113f7614f6cb962ab6562b0e7eb7138
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
1462de39f01cec0ba785386532719cb0207dd827 25-Jul-2012 Adam Cohen <adamcohen@google.com> Ensuring that restoreInstanceState is being called promptly for synchronously bound page

Change-Id: I0e71c29f553ad360ec42a6a0b2529d16cbddd437
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
4a3b54f51f54b5d68926d312eb07d74f90a1673d 24-Jul-2012 Adam Cohen <adamcohen@google.com> am bf5529bd: am a13a2f2a: Fixing issue where defered unbind was running after synchronous bind. (Bug 6858398, Bug 6863181)

* commit 'bf5529bd401ad471658b878f313e32ed8639b479':
Fixing issue where defered unbind was running after synchronous bind. (Bug 6858398, Bug 6863181)
a13a2f2a7bd0550d1ad973f760ff25e1a4137c43 23-Jul-2012 Adam Cohen <adamcohen@google.com> Fixing issue where defered unbind was running after synchronous bind. (Bug 6858398, Bug 6863181)

Change-Id: I03dc3ae18528901cc88c79638a8495c1ab8d61af
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
36e6c5bb232f3a876753b91fb9ec604cda8664a5 19-Jul-2012 Winson Chung <winsonc@google.com> Disabling synchronous binding when returning home from another app while orientation has changed. (Bug 6792288)

- Fixing issue where we were reverting to the first page of the workspace after launching an application from all apps, rotating, and returning home
- Enabling rotation in master.

Change-Id: I291b9d76b20244e9028b6f62164430bc3606644c
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
4a2afa36553079e9f75fe7c8fcce863e84578e14 19-Jul-2012 Winson Chung <winsonc@google.com> Disabling synchronous binding when returning home from another app while orientation has changed. (Bug 6792288)

- Fixing issue where we were reverting to the first page of the workspace after launching an application from all apps, rotating, and returning home
- Enabling rotation in master.

Change-Id: I291b9d76b20244e9028b6f62164430bc3606644c
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
2abf94d37c220c3af01aec05cc6ca22f9854d8e0 19-Jul-2012 Winson Chung <winsonc@google.com> Fixing issue where we would crash when encountering improper launcher.dbs

Change-Id: Ib07ca56cf1a2a04e2058cc8260d5dd917d525c64
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
d7d37b134b7a3b12858ff099069eba369a6b5373 19-Jul-2012 Adam Cohen <adamcohen@google.com> DO NOT MERGE Adding sycnhronous loading of current page to support seamless rotation. (Bug 6792288)

Change-Id: I341160e8a604cde63443e331f762cebc1ed5ec0c
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
b20e6887b6e23d7a2bcbdd0fc9964cacfb80fc77 18-Jul-2012 Winson Chung <winsonc@google.com> Merge "Initial changes to synchronously load workspace on rotation."
b8b2a5aa45d82ce81301250707bc373e1da4aa14 13-Jul-2012 Winson Chung <winsonc@google.com> Initial changes to synchronously load workspace on rotation.

Change-Id: Ia7cf80177fd0aee88aa3f4a731f5d6dc904bea16
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
5d55f33a1d7a16a11fb759d8f37eeef45e132b98 17-Jul-2012 Winson Chung <winsonc@google.com> Fixing issue where we were not clearing the set of removed items since the last event. (Bug 6749258)

Change-Id: I21ed2810e902e2727959b1a4cc0cd6183b750603
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
487f7dd3059621527eb439d7d51d34e00293f9b1 29-Jun-2012 Adam Cohen <adamcohen@google.com> Trying to track down corrupt database / items disappearing

-> Adding logs for all database transactions
-> Adding sanity checks for items in folders, throwing exceptions
if they are violated
-> Reducing database upates when re-arranging items, only
update if values have changed
-> Removed some dead code from ItemInfo (isGesture?)

Change-Id: Ia5cd57d92082f633dbf4aa5d64612cbae2d82bb4
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
42490a5aa093e5ff653b041538c9f3ddf2b3e65f 28-Jun-2012 Winson Chung <winsonc@google.com> Removing unnecessary check of shortcut infos (now that we key removals off package names already). (Bug 6755420)

Change-Id: I13f088503e58eb021a585493e1c55eeccdffea86
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
087f7a64bce5c7b5868d4cc22a369ccfe6d3fc1f 27-Jun-2012 Michael Jurka <mikejurka@google.com> Fix crash when adding shortcuts
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
816474f06b9bea400f4511fa35b63a7f18a54c54 25-Jun-2012 Michael Jurka <mikejurka@google.com> Adding debug code for LauncherModel crash

Change-Id: I9b8c053707cd5714874006c249651a69378569d2
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
cd81073eac537e9f85eeee14588d513ea8a56e17 19-Jun-2012 Winson Chung <winsonc@google.com> Decoupling launcher/workspace package cleanup from the application list (Bug 6602756)

- Fixes issues where shortcuts created by wallpaper/widget-only apps are uninstalled.

Change-Id: I94c9d1d71fc34aa2fb7f0660534e616a82ac6f36
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
3d50932a93dd367537db3548bde29d1380b371c0 06-Jun-2012 Adam Cohen <adamcohen@google.com> Fixing ConcurrentModificationException (issue 6619380)

Change-Id: I49d293a79a463d129e829f823d6b213f3d5ffcf4
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
06dff35763bc46884b6464a9bf4406d32cdcaea4 02-Jun-2012 Adam Cohen <adamcohen@google.com> Fixing issue where widgets could be inflated in wrong orientation (issue 6584646)

Change-Id: I24ea7f59345e8f62daf36c13cb43e1ab0180e805
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
9ad005639e1698c94674cdfadf3ae342fb56c9b5 14-May-2012 Michael Jurka <mikejurka@google.com> Fix issue where Google Voice shortcuts would disappear

Bug: 6449123

Change-Id: I1d8c314ec954caf332d10be927d16ee45f325df8
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
98e030be2abc03e90e9fd9f8bf67e2e01db39cc0 08-May-2012 Winson Chung <winsonc@google.com> Fixing comment.

Change-Id: Iee4009746aa4e517aa9537fa3cf63949a8fffd25
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
7fb9481d0983f6dd88f8e06b139be696dfc6ce61 08-May-2012 Winson Chung <winsonc@google.com> Merge "Further preventing drags while loading is in progress. (Bug 6276881)" into jb-dev
be365165ed00205265c1876c4829fa9ac630da2a 07-May-2012 Winson Chung <winsonc@google.com> Try and resolve the package name from the intent directly falling back to the resolved component name if it fails. (Bug 6452306)

Change-Id: Ifb2187fb845f807f30df966bf298ffde1b779b46
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
36a62fe917be0a2520c457f985075fb5d3d09d1c 07-May-2012 Winson Chung <winsonc@google.com> Further preventing drags while loading is in progress. (Bug 6276881)

Change-Id: I3fc9ad4cd3d71a8eba4e3bcc0a1b6346c59fbee5
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
452b4db5ce5206f050733a39fe95acad11617814 07-May-2012 Winson Chung <winsonc@google.com> Fixing NPE in LauncherModel (Bug 6449627)

Change-Id: I6e0040465e6bf9f65ad7c05af1f7ef7cf948a355
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
2efec4e29f80db4293664d3ed4a89d37454510e1 03-May-2012 Winson Chung <winsonc@google.com> Fixing issue where items that were not yet added were not removed from the db. (Bug 6428418)

Change-Id: I8f76af1ccaa2bc5053f3e1f6606202310855aaae
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
2f093b6ad185967c129781526060288e983bc58a 01-May-2012 Adam Cohen <adamcohen@google.com> Fix widget resizes that shouldn't (issue 6380435)

Change-Id: Ia1da2df16ca184e6f451775597fa33ee38df6122
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
da954bb59932db33e50faf50ebbef77b8b458833 30-Apr-2012 Winson Chung <winsonc@google.com> Merge "Fixing issue where shortcuts and widgets were not being removed when the package was uninstalled (Bug 2657997, Bug 6335843)" into jb-dev
11a4937fbff0dbc50fb022513dc3b6c643154445 28-Apr-2012 Winson Chung <winsonc@google.com> Fixing issue where shortcuts and widgets were not being removed when the package was uninstalled (Bug 2657997, Bug 6335843)

- Also fixes issue if we are dragging a shortcut/widget and it is removed.
- Also exposes App Info for shortcuts and widgets

Change-Id: I3bd5056f50f20e8b277dde6456df26eac815bcde
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
968795679be0a3f0118d5a6e2e1580808da5716d 22-Mar-2012 Michael Jurka <mikejurka@google.com> Set FLAG_ACTIVITY_RESET_TASK_IF_NEEDED for all app shortcuts

Change-Id: I3a5cc205c24b1ec33f428e8d341a995e864f6a1d
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
b85f8a44b51258f22938773ca30dd85845345010 26-Apr-2012 Michael Jurka <mikejurka@google.com> Postpone loading default favorites

- postpone until Launcher activity is created
- gives setup wizard time to set flags before
we load the default workspace
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
3a9fcedbcd235372cd2ab64f825a0b5b3937f59e 13-Apr-2012 Michael Jurka <mikejurka@google.com> Fix warnings and remove dead code

Change-Id: I574d823fedf4b752c3df5a72599b390f708823ac
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
bebf042666cffe52039b875a549a582abd78a431 12-Apr-2012 Adam Cohen <adamcohen@google.com> Widget resizing can now displace items

Change-Id: I005c9aebf64b2d01debe59f86a208075d19476ea
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
f75547babbf91e0a488fa0d9dcc4789880cb6631 04-Apr-2012 Winson Chung <winsonc@google.com> Merge "Changing order of binding to prevent errant flashing while loading workspace."
db8a8944ede3be4ee63b43e24c407a3aaabee4de 03-Apr-2012 Winson Chung <winsonc@google.com> Changing order of binding to prevent errant flashing while loading workspace.

Change-Id: I75eb39600d1cd28980fd0365affb2c6e5f7162c1
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
c208ff9c5ded4953ded6a3358097c9f7280df825 30-Mar-2012 Winson Chung <winsonc@google.com> Adding workaround for issue where icon labels on workspace were loaded differently than those in AllApps. (Bug 5250760)

Change-Id: I9b6fc848befa1bcda84e97ccc9787faf5bda7a5f
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
f0c6ae0e35d3e020db55b5b826955da66b14b7f6 22-Mar-2012 Winson Chung <winsonc@google.com> Adding animation post-installing a shortcut.

Change-Id: I63bb3b713fab28a43e61333dd331dbf2d211faa7
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
0dca1ec41479a74f8da080224fa0c7eacab674d6 29-Feb-2012 Andrew Flynn <flynn@google.com> New small/large screen division for Launcher.

Previously the dp division between the two was set at 600dp
(7" tablets). This has now been bumped up to 720dp
(10" tablets).

Change-Id: I1f0419e504fc3bb606156c1cf6fbe03956274184
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
05bf644e371c9d965ba864cf7dda6515c7cdce91 01-Dec-2011 Michael Jurka <mikejurka@google.com> Fix memory leak in Launcher

Leak happened when a stack view was on the
workspace and then workspace forced a rebind of
its items (for example, when an app was installed)

Bug # 5629171
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
92f3d46cf35e78891f73226e81f8ca7e9a7f4d92 23-Nov-2011 Michael Jurka <mikejurka@google.com> Clean up unused code and import declarations

Change-Id: If36fd2d99a51b07290b13f697b3ea08d31feb023
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
d919882006a457d16dea46bd546472e6534b5c19 23-Nov-2011 Adam Cohen <adamcohen@google.com> Prevent the creation of Shorcuts with null intents (issue 5629292)

Change-Id: I54fbad2d4af27c6d8fc0d79c33e890298a3db4dc
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
00fcb49a4cf68b973ac488520f3ed20444c02f8d 03-Nov-2011 Adam Cohen <adamcohen@google.com> Ensuring disabled apps don't appear in workspace (issue: 5557311)

Change-Id: I4a016b200945779f6e73b9c9d1c2a13c2b0fdef9
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
99a73f31b7ebed102f393c1bc1909007d7fa8a56 25-Oct-2011 Reena Lee <reena@google.com> Updated bug fix for Launcher reloading on mcc update.

Store the previousConfig's mcc value only instead of configuration object.
The mPreviousConfig object was a reference to the same object ResourceManager
was using, which can change by the time LauncherModel gets the intent for
ACTION_CONFIGURATION_CHANGED.
This was causing Launcher to not reload all apps as the currentConfig and previousConfig always matched.

Bug 5040470

Change-Id: Ie7102cc233177e05cb0e0e2ae4240309c16ebf66
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
93f824ac2f2f3ec92a775cad58dcf59e4302fe64 24-Sep-2011 Reena Lee <reena@google.com> Listen for ACTION_CONFIGURATION_CHANGED for an mcc change to reload AllApps

Bug 5040470

Reload all apps in Launcher on ACTION_CONFIGURATION_CHANGED
if the config change was due to an mcc change. App icon labels
such as Gmail/GoogleMail may have mcc-based resources so must be
reloaded if the mcc has changed.

Change-Id: I02e48f9cebb73950cc563a902df850ae0db0a98f
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
16d7ffc5d55cc69ddd5a7854f138b2d8cc0a7635 06-Oct-2011 Adam Cohen <adamcohen@google.com> Adding some dump() logging regarding deleted widgets

Change-Id: Ia11cc27267d06d57e0e16bfabe3b5076481058e5
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
e61e93e56fcd37331943a4059f8cbdaa5d08136a 12-Sep-2011 Winson Chung <winsonc@google.com> Reverting change to load workspace items in reverse order. (5290651)

Change-Id: I6bc5e4ccac12a5a1098721eccb0d6ccede699b42
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
3994035966f2d402d5faf355522424cadadb3aa3 09-Sep-2011 Winson Chung <winsonc@google.com> Merge "Bug Fixing"
7ed3774638133ac603e92ca3174ecdd151269cca 09-Sep-2011 Winson Chung <winsonc@google.com> Bug Fixing

- Setting loader thread priority to default after loading to help rotation time (5264039, more work to be done here potentially)
- Fixing regression in missing background gradient for hotseat
- Removing the old cupcake gallery item bg, new bg assets coming soon (5160311)
- Defering showing the AppsCustomize tab bar until we request layout to help a little with the flashing

Change-Id: I8c4981435f684363be951696986b7ab1b71956eb
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
79e580225eb1b2aaa35de361d413f1e34b69e6c9 08-Sep-2011 Michael Jurka <mikejurka@google.com> Merge "Cleaning up LauncherModel"
c9d95c5897fc5ebbf53903d4ab18ad13d196f643 29-Aug-2011 Michael Jurka <mikejurka@google.com> Cleaning up LauncherModel

- performing all DB operations immediately if called from worker thread (a previous change that did this in updateItemInDatabase fixed an outstanding bug)
- centralizing logic to do database updates
- removing old logging code

Change-Id: Idc7bfef3921828ff7c5492b8e996c0a07e1ec508
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
36f9736cd3519e15ab54ba4f89573969e8e7bfe3 07-Sep-2011 Winson Chung <winsonc@google.com> Loading the workspace favourites in reverse order to work around duplicate issue. (5208427)

Change-Id: I87dee7a9aab345740f51d8168c6b073a93e20652
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
e05b381c55a09170e4dfeb999800e8176731b29c 03-Sep-2011 Winson Chung <winsonc@google.com> Merge "Prevent accessing LauncherModel data structures on main thread. (5220358)"
603bcb91a091d0f4512fdfb92d6df3c6f9fa8059 02-Sep-2011 Winson Chung <winsonc@google.com> Prevent accessing LauncherModel data structures on main thread. (5220358)

Change-Id: Ib9de96abb0ab13ef63b9c594f6982368fd1b614f
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
6ba2a1b6e7595a14ba33e98f728b39d0ecb3ae36 03-Sep-2011 Winson Chung <winsonc@google.com> Fixing incorrect test of occupied state for items in the hotseat. (5208427)

Change-Id: Iee78e6be21389314210ef3c60c557a78b43f8021
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
83df188ce0822f4058406e5f2878d1cf34bf413e 01-Sep-2011 Michael Jurka <mikejurka@google.com> Execute update operations immediately if on right thread

- Potential fix to bug 5205131

Change-Id: Iae302f81e4c8f5c07dc4363b3bb9ef298a33faf4
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
b60fd0eafbb4e6e61b429c403f024dc903bc483a 29-Aug-2011 Michael Jurka <mikejurka@google.com> Tagging where ItemInfos are created for debug purposes

Change-Id: Iad3ed8ef4f81f4990c027ab46fd25b03b089babb
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
ec9788e6819a24ef5dc8fe4edf44f280e4a703fe 29-Aug-2011 Michael Jurka <mikejurka@google.com> Fix crash when package list is updated

bug# 5224498

Change-Id: I8953589c21e97fee3f5c3b95fb4a46beb39562b3
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
c22a54d4263086f8f8d5844a33550c77b09b38bd 25-Aug-2011 Winson Chung <winsonc@google.com> Tweaking the logging in the fail case, adding additional cases for where the db icon cache should be updated. (5205131)

Change-Id: If5bf8d959ba9af40dbe8c13e6ed352a345e1679a
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
536f7db06c18d2622332f7f67002f323b71f1043 25-Aug-2011 Adam Cohen <adamcohen@google.com> Merge "Adding null check to prevent crash when factory resetting device. (5214968)"
cfdf7ee64db8820d91a1cd82bf7b961fb2083dce 25-Aug-2011 Winson Chung <winsonc@google.com> Adding null check to prevent crash when factory resetting device. (5214968)

Change-Id: I514a17bdf097c6df17cacbe6d3aa59d427bc713b
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
b1094bd9630f659cc606853b8a244b6a6b6c6943 25-Aug-2011 Winson Chung <winsonc@google.com> Updating db icon cache when item id cache gets updated. (5205131)

- Also adding additional debugging information

Change-Id: If3372753fb20fecfa97e7d6ba7f72484ab437795
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
cbf7c4d50ce2609518640c3f590f6df435edabae 23-Aug-2011 Winson Chung <winsonc@google.com> Hiding search bar buttons when qsb is disabled. (5187969, 5201453)

Change-Id: I23cbfac5c1a8f96eb8158fd30a1fb335b044d49c
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
30a22f32b07f7a864112d92ac959db0e84e0c374 19-Aug-2011 Winson Chung <winsonc@google.com> Merge "Fixing label cache issue due to different ResolveInfos being returned in different parts of loading, saves 1-10% on AllApps load. (5042022)"
aac01e1073f3deb3f543fd27cc63fd727101584e 17-Aug-2011 Winson Chung <winsonc@google.com> Deferring testing of loaded icons against db icons, saves between 15-30% on workspace load. (5042022)

Change-Id: I016248f6779851390df1bf0a23199d0aecc032d1
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
5308f24d4b66b020202b88eff672f5a89096ebb6 18-Aug-2011 Winson Chung <winsonc@google.com> Fixing label cache issue due to different ResolveInfos being returned in different parts of loading, saves 1-10% on AllApps load. (5042022)

Change-Id: I17166bd6a50858ff76c475688fff9a9eaeba6010
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
c57b7a8233d32c6dd8de5057c570afe3f50e3ef2 10-Aug-2011 Michael Jurka <mikejurka@google.com> Adding a progress bar while All Apps is loading

- also, removing some unused imports

Change-Id: Icf46beb9fa9d89bc06cba33c148ceb7d668cd402
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
f30ad5f1bf33baceeca6b770464fb543b58af985 08-Aug-2011 Winson Chung <winsonc@google.com> Making hotseat a fiver.

Change-Id: I18737692a115f8fd77c6feb3062f4bfeca3506ae
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
931dc9779dab5071efc21163647f5f004991bfb3 06-Aug-2011 Michael Jurka <mikejurka@google.com> Solving bug where labels were uneven

- Ensuring all icons, even those that are pulled from our database cache, are always the correct size
- Solves bug where loading icon for shortcuts with missing activities on a GB->ICS upgrade caused uneven labels (Bug 5111191)

Change-Id: I4b8a97c3b0fa02fd189f82d0c01444f47fee2205
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
7578ec6fa9a747210aba484d226b5f97773752e3 03-Aug-2011 Michael Jurka <mikejurka@google.com> Fix crash when adding bookmark to homescreen from browser

Bug 5109799

Change-Id: Ic7de1dcd06d20715170a856ed345f91bd36d982d
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
9932a9b1e66fed4b5f38ce50f13d56331bbdcd7e 03-Aug-2011 Adam Cohen <adamcohen@google.com> Fixing weird deferred click events after deleting folder

-> Fixing issue 5055487

Change-Id: I932f95f29322fa50035b13063ab51fad2d2217e8
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
3d503fbd9468fb2b9fa645f4f7b91e11229edbfa 14-Jul-2011 Winson Chung <winsonc@google.com> Initial changes to add configurable hotseat.

Change-Id: I4c2ed4a1c122c057662fabc70bfef7c5c088460b
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
cb1a4778686a46c46d8dc88b6c83674f6fac6592 28-Jun-2011 Narayan Kamath <narayan@google.com> Update the search widget icon if the global search provider changes.

Note that this change is necessary because the launcher might
receive the PM broadcast before the SearchManagerService does.

Change-Id: I5a03e2fb16dee232a83d24b834ef6bd0eaabe774
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
288a36b563801a26d00084cb823435a3ba4cb76c 13-Jul-2011 Michael Jurka <mikejurka@google.com> Cleaning up code to deal with language changes
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
c2f801e770b4f80354b3edb722ec04222251990c 12-Jul-2011 Michael Jurka <mikejurka@google.com> Reload workspace if language changes
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
fe63476a2d0b12dfc692c425d1c6cdbb41774ef0 12-Jul-2011 Michael Jurka <mikejurka@google.com> Merge "Fix bug where All Apps wasn't always getting updated"
5b1808da75ed3e3528cb31dee56a4e363812cc21 12-Jul-2011 Michael Jurka <mikejurka@google.com> Fix bug where All Apps wasn't always getting updated

Bug # 4731290
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
93993f8745d8fbf06bd77c01aa683ac23418af32 12-Jul-2011 Adam Cohen <adamcohen@google.com> Merge "Fixing bug 5011917 - clearing refernce to old folders from FolderInfo"
4eac29a80b9a73465c8de54f1caec2a8098a73c6 12-Jul-2011 Adam Cohen <adamcohen@google.com> Fixing bug 5011917 - clearing refernce to old folders from FolderInfo

-> Also, ensured that unbind() gets called on all ItemInfos on rotate

Change-Id: I869b68fcae5c66702ec204596f5ecabdc7a32df7
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
c3eecff9043759926df124483b45fe8f4436ae7c 12-Jul-2011 Winson Chung <winsonc@google.com> Preventing multiple calls to loadLabel for the same info within a single load.

- Fixing mind boggling bug where we weren't even using the label cache earlier.

Change-Id: I605abf4d589ad02b2426d20adfe9cd1773cc84fd
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
a8c760d395e1d2a78522427738302fbca3a72453 28-Apr-2011 Michael Jurka <mikejurka@google.com> Improving LauncherModel performance

- no longer reloading DB on each configuration change
- adding/updating items in DB on background thread

Change-Id: Ie140f31608df84b0ca2d45eb7a210a8a3b36b52f
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
d044526d82e7938cf35b296978d9d5302f98b4af 05-Jul-2011 Adam Cohen <adamcohen@google.com> Adding transitions during folder creation

-> Seamless* transition from dropping item onto another
to the creation of a folder containing those items
-> Seamless* transitions when adding the third item
to a folder
-> Cleaned up the code in FolderIcon in order to achieve
above

Change-Id: Iaf2519ac480acfdc928cc2b7585f28bc7d50bd23
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
afb01ee74243cede19088e694ca82cea5983c603 24-Jun-2011 Adam Cohen <adamcohen@google.com> Folder auto-destroys itself when there is only one item left.

Change-Id: I4ea41e0730e3dc474a518eba0a04c11167b5c1df
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
cd2b01416febb5bf50ed5ede1544dea33fee3b0b 09-Jun-2011 Winson Chung <winsonc@google.com> Removing old Launcher callback reference from LauncherModel when the activity is destroyed.

Change-Id: I288d2bd7e305c2cf9bdeec5357997d566d5205b7
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
63257c110a4ee54d5e8872c471cce254cf613c7a 06-May-2011 Winson Chung <winsonc@google.com> Minor changes to help address some hiccups when panning, changing tabs and rotating in AppsCustomize.

- Also removing references to old all-apps 2d/3d

Change-Id: Ibe07ad8b4facc5c57b3c82ccf0b55260be61a31b
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
4dbea7920a5f52df1d35009352f7e5cba16c05fb 05-May-2011 Winson Chung <winsonc@google.com> Cleaning up icon code.

- Changing long-press on homescreen to bring up wallpaper picker.

Change-Id: I854b1b7dc5a102e95853732d6e9a4fa298144650
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
1ed747a4c07101793322c13a36dd547df4a3aa50 04-May-2011 Winson Chung <winsonc@google.com> Testing mixing shortcuts into widgets pane.

- Initial changes adding LRU cache to widget pane to speed up getting widget previews.

Change-Id: If9ed479ba8f2fb321b3ff8c384ac5a9f87d4c689
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
20c0364a1de9f739e559fc384e9c0f0963c77265 29-Apr-2011 Michael Jurka <mikejurka@google.com> Deleting deprecated and unused code
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
df2cc41acbfacd576f99483a4af1cda32ebd3d09 28-Apr-2011 Adam Cohen <adamcohen@google.com> Stripping LiveFolders from Launcher

Change-Id: Ic105fbeb1289e43469d5975b7d977b2fc7900c0b
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
785d2eb2b8d7072c8124300dd9168ff51a91cf38 15-Apr-2011 Winson Chung <winsonc@google.com> Initial changes to merged AllApps/Customize pane in the Phone UI.

Change-Id: Ifa1676736033fe617dd0cca965156c38fa452948
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
71a954640279e519a8471bf2249bfd6f6c713d1a 22-Mar-2011 Adam Cohen <adamcohen@google.com> Fix launcher crash, bug: 3368489

Change-Id: I8b693d9ea6b4ef58ee1141e8f61b3fede134606b
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
1b607ed454ed22c2fd855cb3e428376520fb2388 04-Mar-2011 Adam Cohen <adamcohen@google.com> Cleaning up widget resizing code

Change-Id: Ib4c0de0080f0b69f873fd88016f23c319a13c6ff
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
d4844c3e731b00547a31f23a00f8bd4a271e2b62 19-Feb-2011 Adam Cohen <adamcohen@google.com> Implementing resizable widgets in launcher

Change-Id: I18598493dcf34fc6089fa330a4b66803f658b773
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
17a8922e2ab2ad599df3750d398a095473ccd1b4 09-Feb-2011 Joe Onorato <joeo@google.com> Make the icon caching for SD cards actually work.

We need to save the icon *after* we have loaded all the other information about it.

Also, add a check that if apps on SD aren't possible, don't even bother saving the icon. This saves
~200 ms on each run of the loader.

Bug: 3240615
Change-Id: Idc2329a868ab970b51deec341ffa8a47a344e110
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
78403feedcf6d61a527cf0c904cb55ca43c0f3cb 22-Jan-2011 Winson Chung <winsonc@google.com> Changing downloads tab to my apps and making most recent first. (3377455)

Change-Id: I75ae46ad601457ecfc9555aff7f7ff5284440317
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
2313eff05b8f52e72ebe06c589c419941fa019d6 12-Jan-2011 Patrick Dubroy <dubroy@google.com> Allow previous view hierarchy to be GC'ed more quickly on rotation

Change-Id: I76215a48e76234501b7ce253dedfa449502ab88f
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
68846fdce6c01bbe474bd0c8307e1ccaac161cbc 29-Oct-2010 Winson Chung <winsonc@google.com> Initial changes to allow resolution of arbitrary clip data to widgets that support them.

Change-Id: Id5dfa8436a5bf6eb7bd300ec603911a9d3698de3
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
c9a961952d1a057029874f8426b90181f6876034 01-Nov-2010 Michael Jurka <mikejurka@google.com> Using hdpi icons in Launcher

Known issue: Default activity icon is still showing up as small
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
e9ad59eba6d8ffd2cbf28520c237ccefd291a33c 30-Oct-2010 Joe Onorato <joeo@google.com> When the locale changes, flush the all apps list.

Bug: 3032131
Change-Id: I47659a459044fdace0a3480d216b168c18f2de37
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
55cef262f97749300c2f6e764da0b00cbcb78879 28-Oct-2010 Winson Chung <winsonc@google.com> Adding initial support for dropping widgets with custom configuration data.

Change-Id: I4a7ba51783b27e544e9a21882bc7cd582b3b43e0
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
a9abd0e0bdedb5cbbd12b84cb83037a735e79a20 28-Oct-2010 Winson Chung <winsonc@google.com> Initial changes to allow dragging external shortcuts to launcher using the same InstallShortcut intent.

Change-Id: I21b57115429ed37d604084ae01308d1d3f33ee7e
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
ef2efcff5e70e5900f4f10f9e46c3fa17c03b0ec 27-Oct-2010 Joe Onorato <joeo@google.com> When the launcher is paused and we reload stuff in the background, we need to re-re-load it in onResume.

Otherwise we can load widgets and other resources from the wrong Configuration.
This doesn't completely fix the bug, but it makes it much less likely. We tell
the launcher once at the beginning of starting a reload because of SD cards coming
back, and once when we bind.

cherry pick of I99ee6af38bef91e261832bad4dec978a5d4a8b3d

Bug: 3126698
Change-Id: I917bdb3982e3eea4924c6e9a8f3c037fd493f415
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
76275ac1c53585a374b5e5f1834631fca9392dd8 12-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 700889f5 to master

Change-Id: I85320de6483e6820fe27b4012bfc323ccafa0e04
adb4229c23faef81705b6b2fe1dfb8a6474c254c 12-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am 02e53429: Merge "Don\'t block the UI when rearranging icons." into gingerbread

Merge commit '02e53429c4ef01bee548e0eaba4aeeee99db35f4'

* commit '02e53429c4ef01bee548e0eaba4aeeee99db35f4':
Don't block the UI when rearranging icons.
700889f504ef134ab307d95b6bfbbb426ea730e3 11-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Serialize background async db updates

Bug: 2983765
Change-Id: I1fdd33ea8ee4fbc79a75ce0450f04d8e18915975
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
ade2f8122f6b1a9b64d2d4a81348db619db4d5b2 11-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> 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
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
5eb7fff487bf98cc6696f32274ce8ad2afee7a95 10-Oct-2010 Joe Onorato <joeo@google.com> am 673aefe8: Merge "When the SD card comes back, we need to show the apps on it." into gingerbread

Merge commit '673aefe8b2b27790d704cc15282c8989a132877b'

* commit '673aefe8b2b27790d704cc15282c8989a132877b':
When the SD card comes back, we need to show the apps on it.
cec583352cd76bd4319d56beec03a4820a3e9d58 07-Oct-2010 Joe Onorato <joeo@google.com> 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
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
a249304572c9a3abb31f1963a7a59e373adfd81f 01-Oct-2010 Joe Onorato <joeo@android.com> am d98979b8: Merge "Reload everything when coming back from the SD being unmounted." into gingerbread

Merge commit 'd98979b8147065878719cd2adb039317ba3abe0a'

* commit 'd98979b8147065878719cd2adb039317ba3abe0a':
Reload everything when coming back from the SD being unmounted.
789065d26e3b1a0f20d92f97068bdbb05a4ae36e 01-Oct-2010 Joe Onorato <joeo@android.com> 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
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
845ba3b17b83a2b11d79c6fb076cf96ab4a737df 29-Sep-2010 Michael Jurka <mikejurka@google.com> Fix: crash on portrait/landscape switch due to
duplicate View ids

Change-Id: I69d09823d4825dadd7f3e119f9248140256f91b3
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
0280c3be4d9f8fc6fdf015b7ecd276eb26f76f2d 18-Sep-2010 Michael Jurka <mikejurka@google.com> Adding support for drag and drop of folders and shortcuts.

also:
- Long press on empty space on workspace now brings up customization tray
- Fixed: while dragging, items appeared to be dropping on folders two cells to the right
- Fixed: Disabling drops on folders when the workspace is shrunken
- Fixed: account for scaling of dragged items when checking if they overlap
with shrunken workspace screens
- Making folder icons dimmable to match shortcuts and widgets
- When deciding with shrunken workspace screen we're dragging to, we now use the closest screen rather than the one that has been overlapped the most
- Refactored drag/add mechanism, removing array of occupied cells from CellInfo
- Removed dead code/variables
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
98cf129f80ded0843328ee0b33caa2239236abb5 15-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 73013bf9: Make LauncherModel.deleteItemFromDatabase write to disk async.

Merge commit '73013bf94f49ffbacba2b8300f6a2dd4eeebbd13'

* commit '73013bf94f49ffbacba2b8300f6a2dd4eeebbd13':
Make LauncherModel.deleteItemFromDatabase write to disk async.
73013bf94f49ffbacba2b8300f6a2dd4eeebbd13 14-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Make LauncherModel.deleteItemFromDatabase write to disk async.

Fixes a bunch of StrictMode violations and removes TODOs.

Change-Id: I886bd071d4a8336c228d29c517a8ffc5223c0623
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
ddc9c1fb1ab426772add520d277ea9c2cd674094 31-Aug-2010 Joe Onorato <joeo@android.com> DO NOT MERGE - Fix 2941495: Launcher short-cut icons don't work for apps on SD card after reboot

Bug: 2941495
Change-Id: Ie8e0e0c62259f8cf933e53b7aa2dc28a835110ae
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
f5ed4f1141ae41e25e249f6e085c7080f11dc968 31-Aug-2010 Joe Onorato <joeo@android.com> DO NOT MERGE - Fix 2941495: Launcher short-cut icons don't work for apps on SD card after reboot

Bug: 2941495
Change-Id: Idf1869d33cd5c01abea5b059ca466529cee0ad93
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
80baf5a6b3c62a62265f626d43d1167783c94131 10-Aug-2010 Winson Chung <winsonc@google.com> Adding paging for the widget/shortcut/folder customization area and fixing bugs.
Adding pages for customization drawer with initial implementation of proposed flow
layout for widgets. Fixes for keeping all apps, and widgets in sync with Launcher
Model, optimizations for reloading all apps pages when invalidating. Adding some
animations for tab transitions and feedback when long pressing to add certain items.

Change-Id: I8d51749f3a91c964bed35681f3a9192200b0d93e
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
d22015cd37ea6ef53762eca5be57daca123ff607 27-Jul-2010 Adam Cohen <adamcohen@google.com> Cleaning up grid size specification in Launcher

This commit eliminates the notion of in-place rotations and a bunch of
associated complexities (including the notion of canonical coordinates).
Further, the number of x and y cells per workspace screen is now being stored
in a single location in the XML definition of Workspace. This fixes a couple
bugs where incorrect values were being used. Finally, eliminated the notion of
"shortAxis" and "longAxis" in terms of padding and cell count. These have been
translated to corresponding x and y axis values.

Change-Id: I30cfed66f82d739355b3f01730b28b6c0437989c
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
3d605d5bbef35e3b8aded44c5ef7fe3948f8f7d5 29-Jul-2010 Patrick Dubroy <dubroy@google.com> Make tabs in all apps actually filter the list of apps.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
aafa03cbb925c74be1c13f8bb99d928be429e62f 12-Jun-2010 Winson Chung <winsonc@google.com> Allow for NxM layout and in-place rotation of items on homescreen.

Currently, rotation is disabled as designs are still in flux, but the NxM grid is enabled (8x4).

Change-Id: I0026f88c674719e3d67de6d6d481d2d4cd606362
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
3611578579b4bfb25616085dafdb1a45207394f9 17-Jun-2010 Joe Onorato <joeo@android.com> 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
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
790c2d9fc5931bca04e6d28a6ccec16e4aea2024 11-Jun-2010 Joe Onorato <joeo@android.com> 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
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
774b327991dc9e1c140d929c32c87dff36695bfc 09-Jun-2010 Joe Onorato <joeo@android.com> Fix the folder bug. The change that had previously fixed this got reverted somehow.

Change-Id: I308656a5b1748e8aca254410b049110afaa7affc
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
cc67f476c01ee6a7d593fa67f80392c6793432d7 08-Jun-2010 Joe Onorato <joeo@android.com> 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
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
843e860e8ebab96ff70988f2829fac38afd9d937 07-Jun-2010 Daniel Sandler <dsandler@android.com> 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
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
596c0e6dbbe80f016339ad5592b1b79fdef75ad7 02-Jun-2010 Daniel Sandler <dsandler@android.com> Don't perform collision checks for items in folders.

Bug: 2735146
Change-Id: Ie4d03b09cc75bfc176ec91be6f6f4369af5cc2a3
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
8802e960495e61803c18ea3dda2e30ef0a611d8f 26-May-2010 Daniel Sandler <dsandler@android.com> 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
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
f3d5ea926d4dd1a739b9d3816543728af723cc26 19-May-2010 Joe Onorato <joeo@android.com> 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
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
fad1fb5ed46473af0a6da4324e9e3fa45bd9f6e8 04-May-2010 Joe Onorato <joeo@android.com> Tweak locking in launcher so mLock isn't held while the slow stuff happens.

Bug 2652948

Change-Id: I9d386395278830ead5deda17b8b09e0dcfeff989
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
0e74d9f0577438cd156e3829b631dd9e27ee34b0 28-Apr-2010 Romain Guy <romainguy@google.com> Avoid ANR in Home by avoiding a sycnhronized call on the UI thread.
Bug #2614636

Change-Id: If9ded9a2e231a429e4d0a21626b486f76fd0a3a6
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
87d2ca8a66f1b1ed3693461c93ba2569c564529f 21-Apr-2010 Joe Onorato <joeo@android.com> Fix 2614384 - NPE in LauncherModel

Callbacks can be null.

Change-Id: I56462a54673b1804a6235d6d882008b453290542
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
d65d08e709ec0916446100bae0a7276d0800382f 20-Apr-2010 Joe Onorato <joeo@android.com> Fix race in LauncherModel that causes it to show duplicate icons.

Change-Id: I78130d6f237f476bc33a4718ca5ef245fe502857
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
2ff10b3b0137d258569ce5471808842e88696133 16-Apr-2010 Daniel Sandler <dsandler@android.com> More Launcher performance improvements.

* Removed another redundant sort
* Correctly set the thread priority to BACKGROUND for the
all apps loading step.
* Moved batch delay to a resource
* Reduced delay between loading batches of apps to 100ms
(we really just want to sleep a tiny bit between batches
to give the UI time to react)

Bug: 2562420
Bug: 2599979 (related)
Change-Id: I1ae72a68c1a47377a9eb62827fe7666bfc50caa5
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
dca661236c73ecd819cfea964c6f8170e5cc40ae 13-Apr-2010 Daniel Sandler <dsandler@android.com> Batch loading of icons for AllApps.

AllAppsList now maintains <data> and <added> in sorted
order, to amortize the cost of sorting the apps list over
multiple batches.

Launcher boosts thread priority on first launch, but we now
reduce thread priority to normal after the main workspace
has been drawn but before all apps are loaded.

Experimental feature: a short delay is introduced between
batches to help free up the CPU (as well as to show that we
are indeed batching apps).

Bug: 2562420
Change-Id: I2035ec3e819b4e7993a80c6d03bfad3914c95a7a
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
ac03330c9684f98b4dd067a87ca70d3e0be1cfed 14-Apr-2010 Joe Onorato <joeo@android.com> Fix 2583234 - It's ok for mCallbacks to be null.

Change-Id: Iec8df7b668a4657677f9c5421d00aa1b7df91015
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
8ddc4fdba06cfa786950c306475b7a4e3f6846ab 17-Mar-2010 Joe Onorato <joeo@android.com> Add a log message and some todos.

Change-Id: I948997d169d1833f2b61c620a02dbccae535e8de
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
d8d22da5ca3e8d3e8d2e3616305b038d37486f32 12-Mar-2010 Joe Onorato <joeo@android.com> Bug 2509023 - NPE on upgrade to froyo

Change-Id: I07cb4f272948062b47da8826ca917fd74ad18404
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
c131b74922e6323331c374856bda830010d761c8 12-Mar-2010 Joe Onorato <joeo@android.com> Eliminate a race where old Launcher objects will continue to get callbacks for loading if they go
away before they're done.

Change-Id: Id9f57be482da428750285c86d95114d2652064e6
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
e74daedc3b41d958315f7d5bf69deb232ca89468 11-Mar-2010 Joe Onorato <joeo@android.com> Fix 2507267 - stack overflow when adding shortcut

Change-Id: Ife5bea443debd481854693b3924e72a04fb66f97
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
56d8291af6a28c6ba64113120efdf84a785e816c 07-Mar-2010 Joe Onorato <joeo@android.com> Apps on SD card don't confuse the launcher any more. They show up properly after reboots,
mounting and unmounting.

Change-Id: Icd861dcd8ac6401c597e2f9c8e2c66dff1cf9c61
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
64e6be78dc72e1a89fe8fb95c502586f9260df28 05-Mar-2010 Joe Onorato <joeo@android.com> Refactor the app updates so that it doesn't rely on the package name.

This will be needed for the upcoming change to update the icons with the
grayed out when the SD card goes away.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
edcce099c98a6c40d10109ac092ab50f9d2668f3 04-Mar-2010 Romain Guy <romainguy@android.com> Fix the build!
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
0589f0f66ce498512c6ee47482c649d88294c9d0 08-Feb-2010 Joe Onorato <joeo@android.com> Split ApplicationInfo into ApplicationInfo which is used for AllAppsView and ShortcutInfo which is
used for the workspace.

Consolidate the three icon resampling functions into one.

Ensure that the icons stored in LauncherProvider are the right size, so we don't have to resample
them each time we load them.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
629de3ef739883c0962423cc0c3a26299f162d3d 13-Jan-2010 Romain Guy <romainguy@android.com> Remove widgets when the corresponding apk is uninstalled.
Bug #2298872
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
5c16f3ecd6b47bff3abbe40deb3d39c66a3b0012 13-Jan-2010 Romain Guy <romainguy@android.com> Remove LiveFolders when corresponding package is uninstalled.
Bug #2298872
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
7984c9496bcaeca23ee7fdecc4d4f1bb2467e0f2 09-Dec-2009 Bjorn Bringert <bringert@android.com> Get rid of the built-in search widget in Launcher2

Uses the widget from packages/apps/QuickSearchBox instead.

Change-Id: I85d64defe155c0cad97fafef6a3db62c6cab504a
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
b0c27f254a9929be208d5e04554f438076c833bc 02-Dec-2009 Joe Onorato <joeo@android.com> Bug 2290800 - Use a collator to sort the app labels.

SHAME ON ME for using String.compareTo().
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
418928e9d0168609cc802e95c18930d131147e7a 20-Nov-2009 Joe Onorato <joeo@android.com> Fix bug 2223769 - Uninstalling app causes NPE.

The check for whether there is anything in these lists should be sufficient. The other
variables don't need to also be checked.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
0c4513e55904b022a161456d699d6c1f414f0936 19-Nov-2009 Joe Onorato <joeo@android.com> This might fix bug 2262272 - Apps list empty

I'm not sure how .added is empty, but the only way I see for this
to happen is if it is, so use .data instead, which ought to be the
same.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
be38609f875f9b9374ceaf723135c0a624637fcb 18-Nov-2009 Joe Onorato <joeo@android.com> Add a lot of logging that can be seen by doing adb shell setprop launcher2.dumpstate 1 and presssing volume down
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
1db7a972bfa8786fc8b58d57f832a378fa731eb0 17-Nov-2009 Joe Onorato <joeo@android.com> Fix 2260199 - App icons placed in folder widget are doubled after rebooting phone.

I don't know why I did this piecemeal instead of just fixing it for widgets items and folders all at
once.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
a30ce8e6b25e41f392a41fd4d0d3e0a424a84dad 11-Nov-2009 Joe Onorato <joeo@android.com> Bug 2231692 - Turn off launcher2 logging.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
028b624e52d3f6b2f27e01566915084cbb6f0724 11-Nov-2009 Joe Onorato <joeo@android.com> Fix 2226221 - home screen app names do not reflect on locale change
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
511ab64d25ee45518b816afa9110b3160edf3f7b 08-Nov-2009 Joe Onorato <joeo@android.com> Fix 2215274 - Duplicate widgets appearing on top of each other

My fix for duplicate icons didn't account for widgets.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
ad72e1705c32da463a552f2283ae467dc15a4a34 06-Nov-2009 Joe Onorato <joeo@android.com> Fix launcher2 crash. We weren't initializing the list of folders. Bug 2210545.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
0ace11a2b0da4629d5aefceb36e12c697725d7d1 05-Nov-2009 Joe Onorato <joeo@android.com> Add logging to launcher2 to help diagnose 2239265 since QA keeps reassigning it to me without
providing more detailed steps to reproduce.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
84f296c106cb1c7b6d3ae6c6d5508a17f1324e29 05-Nov-2009 Romain Guy <romainguy@android.com> Add android.home.drop even for the live wallpapers.

Change-Id: I44ad9fe573dc3d2e5d091fed01300d44b6be9473
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
080d9b614e609826dce2606f9e474af674ead933 02-Nov-2009 Joe Onorato <joeo@android.com> Adjust logging of launcher2 launch times, and make all apps loading wait a little longer,
even though usually it happens later anyway.

For bug 2226555.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
3c2f7e105d8daab439bff2c362a727ad348d8a44 01-Nov-2009 Joe Onorato <joeo@android.com> fix 2206016 - Passion: Deleted Icons are added again after deleting folder on home screen
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
f99f8c1ad265cf7bea7e30476911d730b7d0eaae 31-Oct-2009 Joe Onorato <joeo@android.com> Fix 2223769 - Uninstalling a widget (via adb uninstall) crashed launcher2 and com.cooliris.media

If we haven't even initialized yet, don't respond to app list changes.

I think this will fix that bug. It's possible that there's some other race in there somehow.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
1d8e7bbe09e130af5e9534cc26a65f623be7a424 16-Oct-2009 Joe Onorato <joeo@android.com> Fix the bug where the icons stop showing up.

I think what's happening here is that when there is a configuration
change, we were restarting the launcher process because the driver
would hang. But now that that's fixed, we need to poke the model
to reload the icons. We were missing the bind apps call.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
34b02499432896b60cdb9f78c9d1019c80ef6ef5 14-Oct-2009 Joe Onorato <joeo@android.com> passion - fix 2176920 - all apps cleared after deleting folder
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
3c8b90d9eb149aae593c726893eb560900f302ab 11-Sep-2009 Marco Nelissen <marcone@google.com> Fix crash when reinstalling live wallpapers.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
6665c0f1fec6ec0962896622986340081df992e7 03-Sep-2009 Joe Onorato <joeo@android.com> Click on icons.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
efabe00e4a51bb792366c459d6acc46832e61fdc 28-Aug-2009 Joe Onorato <joeo@android.com> The icons are 3d
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
9c1289cb3bfb74f86e53ec7ac6dd76bb39666b2d 17-Aug-2009 Joe Onorato <joeo@android.com> Redo the launcher loading code and put the real app icons into rollo.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
a5902524d4403885eb4c50360bf3465c6be796ef 30-Jul-2009 Joe Onorato <joeo@android.com> Launcher2 compiles.
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java
fca7c88f9dba895d9f6cf52c6f0e656445063e3e 30-Jul-2009 Joe Onorato <joeo@android.com> Move com/android/launcher -> com/android/launcher2
/packages/apps/Launcher2/src/com/android/launcher2/LauncherModel.java