Commit Graph

3341 Commits

Author SHA1 Message Date
Anjali Koppal ef3784cf69 Merge "Add LauncherProviderChangeListener" into ub-now-mister-ugly 2014-03-17 23:47:21 +00:00
Anjali Koppal af63581cb6 Merge "Add Launcher.onDragStarted" into ub-now-mister-ugly 2014-03-17 23:22:58 +00:00
Anjali Koppal 67e7cae5ad Add LauncherProviderChangeListener
Change-Id: I2333a157c488cd048a860982cc675ed9cec626ae
2014-03-17 15:13:01 -07:00
Anjali Koppal e3e646e1f0 Make all fields of ItemInfo public.
Change-Id: Iaf99aa125634a467616eedd0888a0affa08d79bd
2014-03-17 15:08:41 -07:00
Anjali Koppal 62d18edcc7 Add Launcher.onDragStarted
Change-Id: Iac59685211905580460d0a0a16d9c7f00c61fac9
2014-03-17 15:06:41 -07:00
Chris Wren 04960cd2e5 Merge "also backup icon assets for shortcuts." into ub-now-mister-ugly 2014-03-13 20:20:01 +00:00
Chris Wren 5160e96698 also backup icon assets for shortcuts.
Bug: 13449249
Change-Id: I8c5a9e907f668e105c2786b80f0c8e62bd5f8344
2014-03-13 11:41:59 -04:00
Anjali Koppal 5ad4484df3 Add a setter/getter for Launcher.mAllAppsButton.
Also, handle clicks on the all apps button by using onClick() method in
Launcher instead of directly calling onClickAllAppsButton in Hotseat.java

Bug 12553852
Change-Id: I261c27d3e964bbb1f52c2ab610997defd99a59bd
2014-03-12 18:22:55 -07:00
Anjali Koppal fc4787f7be Merge "Make FolderIcon.getFolder() public and add Folder.getContent()." into ub-now-mister-ugly 2014-03-13 00:21:52 +00:00
Chris Wren 42c725fe68 enable launcher restore by default
shortcuts are wroking, widgets are todo

Bug: 10778992
Change-Id: I938b6d6ba5b68769628337955a17badaece1433f
2014-03-11 14:36:00 -04:00
Chris Wren 76336cfcd6 Merge "update promise icon status" into ub-now-mister-ugly 2014-03-11 17:48:42 +00:00
Chris Wren aeff7ea434 update promise icon status
also fix a crash in LauncherModel.DEBUG_LOADERS

Bug: 10778992
Change-Id: Iafc28c1e0c2f2a1283783a7ce27e181634b62993
2014-03-11 13:41:05 -04:00
Anjali Koppal f05545fcc2 Make FolderIcon.getFolder() public and add Folder.getContent().
Change-Id: I21ad8b8178acbde2759cd2dfcd015d91e00b7505
2014-03-10 19:18:43 -07:00
Jason Monk 9364986c83 Merge "Add support for uri favorites and resolve groups" into ub-now-mister-ugly 2014-03-10 18:29:38 +00:00
Dan Sandler bfbd52a5e6 am eac828e0: Merge "Don\'t lose icons when migrating from different-sized hotseats." into ub-now-lunchbox
* commit 'eac828e0fec7085d0d6b670d578eaaf36ae2e3ca':
  Don't lose icons when migrating from different-sized hotseats.
2014-03-07 13:09:03 -08:00
Dan Sandler eac828e0fe Merge "Don't lose icons when migrating from different-sized hotseats." into ub-now-lunchbox 2014-03-07 20:15:17 +00:00
Jason Monk 41314973b4 Add support for uri favorites and resolve groups
Adds support for new types in default_workspace xml files.

Adds support to favorite that attempts to resolve an intent specified
by URI. If a logical choice can be found from the resolve, it adds the
shortcut.

Adds support for a resolve, which contains several favorites and attempts
to add the shortcuts until one is successful.

Bug: 10547358
Change-Id: Ia30341e77e7d4a0bd4a4f4e6a3d9ce2a48a46237
2014-03-07 13:35:34 -05:00
Selim Cinek 3a8a8f7c23 Disable wallpaper in -1 space in GEL and hack around window animations
Bug: 12978354

Change-Id: I8b5602ae434a9151b40d41defb891db1ad78ce81
2014-03-07 14:30:36 +01:00
Dan Sandler ab5fa3a06a Don't lose icons when migrating from different-sized hotseats.
Launcher2 on sw720dp devices had 8 hotseat slots; Launcher3
has only 6 on those same devices. When importing the old
hotseat, the empty slot (so technically there were 9)
occupied by the all apps button didn't line up with the new
all apps button, causing a hole on the hotseat. Furthermore,
the icon in old position 3 was clobbered by the new all apps
icon:

    0 1 2 3 (#) 4 5 6 7 ==> 0 1 2 (:) _ 4 5

In this CL we introduce a separate sort-and-place step for
hotseat icons so that any icon colliding with the new
all-apps slot can be moved to the right to find the next
nearest open slot. This works well for the 8->6 case; it
will probably do something reasonable, if not ideal, for
other grid migration scenarios.

But those are not covered by this bug.

Bug: 13015468
Change-Id: I7edb3f27addc78ad02bbfcd1c39175ca56220007
2014-03-06 23:54:24 -05:00
Adam Cohen 497ecbd311 am ac8180ac: Merge "Revert "Fix issue of extra blank screen after uninstall (issue 12372657)"" into ub-now-lunchbox
* commit 'ac8180ac7856e4739c147bee3f419b19573c3dae':
  Revert "Fix issue of extra blank screen after uninstall (issue 12372657)"
2014-03-06 16:42:28 -08:00
Adam Cohen ac8180ac78 Merge "Revert "Fix issue of extra blank screen after uninstall (issue 12372657)"" into ub-now-lunchbox 2014-03-07 00:39:23 +00:00
Adam Cohen 8a4a731b0f Revert "Fix issue of extra blank screen after uninstall (issue 12372657)"
This reverts commit b2603e3d3a.

Change-Id: I81f8c5a4e3861b936ef9e1fbdb339c12d5aefc70
2014-03-06 22:30:35 +00:00
Winson Chung 19e213f60d am c6c03671: Disabling cling when the user moves the folder before launching it. (Bug 12963868)
* commit 'c6c0367111e587c7f19cb8185dcda550aa94a848':
  Disabling cling when the user moves the folder before launching it. (Bug 12963868)
2014-03-06 11:50:24 -08:00
Winson Chung eb23cb2a90 Properly releasing ContentProviderClient after LauncherModel check.
Change-Id: I0823ada46661b5ba0c36a0bb9f792969a1d04561
2014-03-06 18:41:51 +00:00
Winson Chung c6c0367111 Disabling cling when the user moves the folder before launching it. (Bug 12963868)
Change-Id: Iddcdf655c78b7240be123bd549f3d45794d02c83
2014-03-06 10:33:41 -08:00
Anjali Koppal 7b168a1bb9 Make classes that extend ItemInfo public.
Also follow up on changes in ag/418520, adding Views to those method
params.

Change-Id: I93e0a3b30d10b969d1903a2f227f6744d709e89a
2014-03-04 17:16:11 -08:00
Adam Cohen 919ce78038 am 7da05a50: Merge "Fix issue of extra blank screen after uninstall (issue 12372657)" into ub-now-lunchbox
* commit '7da05a506cdc651a77df918ec20d6aa881ca51b2':
  Fix issue of extra blank screen after uninstall (issue 12372657)
2014-03-03 16:32:59 -08:00
Adam Cohen 7da05a506c Merge "Fix issue of extra blank screen after uninstall (issue 12372657)" into ub-now-lunchbox 2014-03-04 00:14:38 +00:00
Adam Cohen b2603e3d3a Fix issue of extra blank screen after uninstall (issue 12372657)
Change-Id: I0326914821f68d789cb26767518ead1292d87db0
2014-03-03 16:12:35 -08:00
Adam Cohen 89d0bf0713 am 65e43032: Fix build
* commit '65e43032c8962765a3e89826d4312042a03ee3be':
  Fix build
2014-03-03 11:39:35 -08:00
Adam Cohen 65e43032c8 Fix build
Change-Id: I17944c557970ed35e1bc67f6f3e3372ff88651ad
2014-03-03 11:37:27 -08:00
Adam Cohen 6902916b07 am 474a3573: Merge "Avoid stripping empty screens if the workspace is still loading (issue 12523285)" into ub-now-lunchbox
* commit '474a35735ae758757dfd161a5c045d027bb9e033':
  Avoid stripping empty screens if the workspace is still loading (issue 12523285)
2014-03-03 11:19:36 -08:00
Adam Cohen 474a35735a Merge "Avoid stripping empty screens if the workspace is still loading (issue 12523285)" into ub-now-lunchbox 2014-03-03 19:07:23 +00:00
Adam Cohen 517a7f5fd0 Avoid stripping empty screens if the workspace is still loading (issue 12523285)
-> This appears to be what may be causing data loss in some users during update.
   A certain (seemingly) rare combination of life-cycle events and package events
   seems to be the culprit (potentially why it's seen at update time).

Change-Id: Iea4f8aef012ba80b7ba568e0df264edb9284efbe
2014-03-01 12:17:44 -08:00
Anjali Koppal feec09d731 Merge "Make launcher implement PageSwitchListener." into ub-now-mister-ugly 2014-02-28 22:32:06 +00:00
Anjali Koppal f5d29130b9 Make launcher implement PageSwitchListener.
Change-Id: Ief4b0cb4700aeace56a3c923a0a669a626c6506b
2014-02-28 13:33:27 -08:00
Jorim Jaggi e69746dc88 am 4f462f4a: Merge "Revert "Disabled the wallpaper when completely in -1 Now space."" into ub-now-lunchbox
* commit '4f462f4a8b9fc6897d9fab9ad31c06e0b8f79373':
  Revert "Disabled the wallpaper when completely in -1 Now space."
2014-02-28 06:55:56 -08:00
Jorim Jaggi 4f462f4a8b Merge "Revert "Disabled the wallpaper when completely in -1 Now space."" into ub-now-lunchbox 2014-02-28 14:52:44 +00:00
Chris Wren 71bc71fb7e am 71144266: skip backup if launcher is in a bad state
* commit '7114426665c21a11464147a8bb5e094b7949db42':
  skip backup if launcher is in a bad state
2014-02-27 12:57:07 -08:00
Chris Wren 7114426665 skip backup if launcher is in a bad state
Bug: 13153542
Change-Id: I4312ebd200e8e652ef841f54301981c2a486b726
2014-02-27 15:49:39 -05:00
Jorim Jaggi b45b65e1e5 Revert "Disabled the wallpaper when completely in -1 Now space."
This reverts commit f3a8e8c0bd.

Bug: 12978354
Change-Id: I11f1eeaab4fad9a2e4acf835144f0b0dc6fac54b
2014-02-27 20:33:46 +01:00
Chris Wren 0fe418832a am 0e4a365e: Merge "use restored icon for restored app shortcuts" into ub-now-lunchbox
* commit '0e4a365e0d0220aff3cf60aa390fe9fcc05dbea1':
  use restored icon for restored app shortcuts
2014-02-25 08:21:35 -08:00
Chris Wren 0e4a365e0d Merge "use restored icon for restored app shortcuts" into ub-now-lunchbox 2014-02-24 21:59:34 +00:00
Adam Cohen 1c471f4c3b am 71e03b99: Fix issue where clings didn\'t appear after set up wizard (issue 13077829)
* commit '71e03b9979b5ee4c30daa7eb0a704ec92b38431b':
  Fix issue where clings didn't appear after set up wizard (issue 13077829)
2014-02-21 14:40:50 -08:00
Adam Cohen 71e03b9979 Fix issue where clings didn't appear after set up wizard (issue 13077829)
-> Also removed the db-created as a criteria for showing the clings
   (this was a bit problematic in some cases and going forward)
-> Instead, we use database upgrade as a signal to not show the clings.
   This is used instead of the above criteria (to prevent old users from
   seeing the migration cling and losing their data.)
-> Stripped some old code related to custom clings that's no longer used.

Change-Id: Ib5e5285e5ddbc60e69eb998ee9fd092ae879150d
2014-02-21 14:37:53 -08:00
Chris Wren 6d0dde01f3 use restored icon for restored app shortcuts
Bug: 10778992
Change-Id: Ie430a6587d49dc0d78b87b81582c0cef7c281017
2014-02-14 11:49:30 -05:00
Sandeep Siddhartha 92ecd2346b Merge "Refactor clicks and remove dead code" into ub-now-mister-ugly 2014-02-14 03:34:49 +00:00
Sandeep Siddhartha a942030eb6 Refactor clicks and remove dead code
Change-Id: Id92f43b4f6b31707a18035dace6ad14ab728d0bb
2014-02-13 17:37:15 -08:00
Jorim Jaggi 55bd9725d5 Implement spring-loading of folders when dragging over.
Bug: 8912132
Change-Id: Id81889a133e56461df2e20599c4b40020818ba18
2014-02-12 22:16:51 +01:00
Yura 085c853a57 Do updateWorkspaceScreenOrder inside a single transaction.
The workspacescreens table is updated in LauncherModel.updateWorkspaceScreenOrder
and that the operation to remove all screens, then reinsert the new list of
screens in not inside a single transaction, so if the app is updating or
crashes between ContentResolver.delete and ContentResolver.bulkInsert then
the data will be lost. This CL makes it all happen inside 1 transaction.

Bug: 12523285
Change-Id: I409dbc9f48fa9c8bd4bf3b1453204a4daac1689a
2014-02-11 15:15:29 +00:00