Commit Graph

174 Commits

Author SHA1 Message Date
Adam Cohen 28b3e10fde Removing db corruption exceptions, logging instead (issue 7112132)
Change-Id: I5fd169ba53a88797723997d25399b39b0468864a
2012-10-04 17:21:33 -07:00
Brian Muramatsu 5524b4957f Specify workspace resource in preload broadcast
Bug 7203884

Allow specifying the workspace XML layout in the PRELOAD_WORKSPACE
broadcast.

Change-Id: Iec01c6fa2dde4635f624f040b0772ee11fcd88dc
2012-10-02 16:55:54 -07:00
Michael Jurka b2ae8acc0c Try to fix RTE when updating shortcuts
Bug: 6529398
Change-Id: Ib88eda5dc1eaf72aae161b25b080197b1049e824
2012-09-21 15:26:52 -07:00
Winson Chung 1190487e15 Fixing issue where we were collating labels based on an old Locale. (Bug 7133873)
Change-Id: Ic1366f06020d1e405a6800386472a8832d683c5e
2012-09-17 16:59:21 -07:00
Winson Chung 8a4351063f Fixing issue where we were not removing items from LauncherModel and only the add-queue. (Bug 7078244)
Change-Id: I5660b447521646f820fb2497f327e965d99ac207
2012-08-30 17:18:59 -07:00
Winson Chung 81b5225279 Ensuring that unbind calls are not queued in the worker thread and executed subsequently on the main thread. (Bug 7001531)
Change-Id: I677242c0952d6385ca229ba300fdd5a2a7908a8a
2012-08-27 17:42:09 -07:00
Ed Heyl 8165f0dd20 resolve conflicts w/4f174f1d27adbde6f50e11ee3a8eaf162a030284
Change-Id: I7ecce86e58af545aa18ea25e16978a1dce9dab8e
2012-07-25 15:04:00 -07:00
Ed Heyl 90abcc9425 resolved conflicts w/0ede734d0780a968c9c345f99a18f9f8b9fc02cd
Change-Id: I50900698a590e8d84a6cbcc560f95209d3a6d110
2012-07-25 14:52:36 -07:00
Winson Chung c93e5ae120 Binding AllApps synchronously. (Bug 6855061)
- Also ensuring that we restore to the settling page index if it is in motion

Change-Id: I9c6760383113f7614f6cb962ab6562b0e7eb7138
2012-07-24 23:56:21 -07:00
Adam Cohen 1462de39f0 Ensuring that restoreInstanceState is being called promptly for synchronously bound page
Change-Id: I0e71c29f553ad360ec42a6a0b2529d16cbddd437
2012-07-24 22:34:36 -07:00
Adam Cohen 4a3b54f51f 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)
2012-07-23 19:52:38 -07:00
Adam Cohen a13a2f2a7b Fixing issue where defered unbind was running after synchronous bind. (Bug 6858398, Bug 6863181)
Change-Id: I03dc3ae18528901cc88c79638a8495c1ab8d61af
2012-07-23 14:29:15 -07:00
Winson Chung 36e6c5bb23 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
2012-07-19 18:23:56 -07:00
Winson Chung 4a2afa3655 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
2012-07-19 15:13:51 -07:00
Winson Chung 2abf94d37c Fixing issue where we would crash when encountering improper launcher.dbs
Change-Id: Ib07ca56cf1a2a04e2058cc8260d5dd917d525c64
2012-07-18 18:40:56 -07:00
Adam Cohen d7d37b134b DO NOT MERGE Adding sycnhronous loading of current page to support seamless rotation. (Bug 6792288)
Change-Id: I341160e8a604cde63443e331f762cebc1ed5ec0c
2012-07-18 18:40:11 -07:00
Winson Chung b20e6887b6 Merge "Initial changes to synchronously load workspace on rotation." 2012-07-18 10:27:56 -07:00
Winson Chung b8b2a5aa45 Initial changes to synchronously load workspace on rotation.
Change-Id: Ia7cf80177fd0aee88aa3f4a731f5d6dc904bea16
2012-07-17 18:44:42 -07:00
Winson Chung 5d55f33a1d Fixing issue where we were not clearing the set of removed items since the last event. (Bug 6749258)
Change-Id: I21ed2810e902e2727959b1a4cc0cd6183b750603
2012-07-16 20:48:04 -07:00
Adam Cohen 487f7dd305 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
2012-07-09 14:49:19 -07:00
Winson Chung 42490a5aa0 Removing unnecessary check of shortcut infos (now that we key removals off package names already). (Bug 6755420)
Change-Id: I13f088503e58eb021a585493e1c55eeccdffea86
2012-06-28 12:18:20 -07:00
Michael Jurka 087f7a64bc Fix crash when adding shortcuts 2012-06-27 11:51:21 -07:00
Michael Jurka 816474f06b Adding debug code for LauncherModel crash
Change-Id: I9b8c053707cd5714874006c249651a69378569d2
2012-06-25 15:04:47 -07:00
Winson Chung cd81073eac 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
2012-06-21 10:50:51 -07:00
Adam Cohen 3d50932a93 Fixing ConcurrentModificationException (issue 6619380)
Change-Id: I49d293a79a463d129e829f823d6b213f3d5ffcf4
2012-06-06 15:00:45 -07:00
Adam Cohen 06dff35763 Fixing issue where widgets could be inflated in wrong orientation (issue 6584646)
Change-Id: I24ea7f59345e8f62daf36c13cb43e1ab0180e805
2012-06-04 12:18:04 -07:00
Michael Jurka 9ad005639e Fix issue where Google Voice shortcuts would disappear
Bug: 6449123

Change-Id: I1d8c314ec954caf332d10be927d16ee45f325df8
2012-05-14 12:28:54 -07:00
Winson Chung 98e030be2a Fixing comment.
Change-Id: Iee4009746aa4e517aa9537fa3cf63949a8fffd25
2012-05-07 16:01:16 -07:00
Winson Chung 7fb9481d09 Merge "Further preventing drags while loading is in progress. (Bug 6276881)" into jb-dev 2012-05-07 15:58:50 -07:00
Winson Chung be365165ed 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
2012-05-07 11:11:52 -07:00
Winson Chung 36a62fe917 Further preventing drags while loading is in progress. (Bug 6276881)
Change-Id: I3fc9ad4cd3d71a8eba4e3bcc0a1b6346c59fbee5
2012-05-06 19:06:30 -07:00
Winson Chung 452b4db5ce Fixing NPE in LauncherModel (Bug 6449627)
Change-Id: I6e0040465e6bf9f65ad7c05af1f7ef7cf948a355
2012-05-06 16:52:17 -07:00
Winson Chung 2efec4e29f Fixing issue where items that were not yet added were not removed from the db. (Bug 6428418)
Change-Id: I8f76af1ccaa2bc5053f3e1f6606202310855aaae
2012-05-04 10:23:38 -07:00
Adam Cohen 2f093b6ad1 Fix widget resizes that shouldn't (issue 6380435)
Change-Id: Ia1da2df16ca184e6f451775597fa33ee38df6122
2012-04-30 18:59:53 -07:00
Winson Chung da954bb599 Merge "Fixing issue where shortcuts and widgets were not being removed when the package was uninstalled (Bug 2657997, Bug 6335843)" into jb-dev 2012-04-30 10:22:37 -07:00
Winson Chung 11a4937fbf 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
2012-04-27 15:15:11 -07:00
Michael Jurka 968795679b Set FLAG_ACTIVITY_RESET_TASK_IF_NEEDED for all app shortcuts
Change-Id: I3a5cc205c24b1ec33f428e8d341a995e864f6a1d
2012-04-27 15:09:37 -07:00
Michael Jurka b85f8a44b5 Postpone loading default favorites
- postpone until Launcher activity is created
- gives setup wizard time to set flags before
we load the default workspace
2012-04-25 16:14:16 -07:00
Michael Jurka 3a9fcedbcd Fix warnings and remove dead code
Change-Id: I574d823fedf4b752c3df5a72599b390f708823ac
2012-04-13 14:52:51 -07:00
Adam Cohen bebf042666 Widget resizing can now displace items
Change-Id: I005c9aebf64b2d01debe59f86a208075d19476ea
2012-04-12 11:25:34 -07:00
Winson Chung f75547babb Merge "Changing order of binding to prevent errant flashing while loading workspace." 2012-04-04 10:03:39 -07:00
Winson Chung db8a8944ed Changing order of binding to prevent errant flashing while loading workspace.
Change-Id: I75eb39600d1cd28980fd0365affb2c6e5f7162c1
2012-04-03 14:09:13 -07:00
Winson Chung c208ff9c5d Adding workaround for issue where icon labels on workspace were loaded differently than those in AllApps. (Bug 5250760)
Change-Id: I9b6fc848befa1bcda84e97ccc9787faf5bda7a5f
2012-03-30 11:01:01 -07:00
Winson Chung f0c6ae0e35 Adding animation post-installing a shortcut.
Change-Id: I63bb3b713fab28a43e61333dd331dbf2d211faa7
2012-03-23 11:17:25 -07:00
Andrew Flynn 0dca1ec414 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
2012-02-29 17:30:37 -08:00
Michael Jurka 05bf644e37 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
2011-11-30 20:30:17 -08:00
Michael Jurka 92f3d46cf3 Clean up unused code and import declarations
Change-Id: If36fd2d99a51b07290b13f697b3ea08d31feb023
2011-11-28 10:51:22 -08:00
Adam Cohen d919882006 Prevent the creation of Shorcuts with null intents (issue 5629292)
Change-Id: I54fbad2d4af27c6d8fc0d79c33e890298a3db4dc
2011-11-22 16:51:26 -08:00
Adam Cohen 00fcb49a4c Ensuring disabled apps don't appear in workspace (issue: 5557311)
Change-Id: I4a016b200945779f6e73b9c9d1c2a13c2b0fdef9
2011-11-07 11:13:19 -08:00
Reena Lee 99a73f31b7 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
2011-10-24 17:37:11 -07:00