Commit Graph

7993 Commits

Author SHA1 Message Date
Adrian Roos 5d2704fbb0 Clean up dead, ugly and wrong code in icon and widget preview loading
Removed and fixed serveral instances of dead code and small
bugs that grew in the widget preloading logic, discovered
while chasing a bug.

Bug: 12525890
Change-Id: I22e03eccecc07b73388cfd3c8462d947601c6e54
2014-03-19 16:27:35 +01:00
Mohammadinamul Sheik e769d1681e Merge "Add onClickPagedViewIcon to the Launcher." into ub-now-mister-ugly 2014-03-18 20:30:52 +00:00
Mohammadinamul Sheik 3b1a54a206 Add onClickPagedViewIcon to the Launcher.
Change-Id: I34505ee5c9a6fe6ddd1a9f3134829fe0481e8bc0
2014-03-18 11:28:19 -07:00
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 8c10ce7f82 Merge "Make all fields of ItemInfo public." into ub-now-mister-ugly 2014-03-17 23:13:57 +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
Geoff Mendal 6ab691b69e am f57c1564: (-s ours) Import translations. DO NOT MERGE
* commit 'f57c1564b53eab486a5ac006ac5be2a9e1e33cc8':
  Import translations. DO NOT MERGE
2014-03-17 13:44:43 -07:00
Geoff Mendal f2e81836dc Import translations. DO NOT MERGE
Change-Id: I6bcf984e6fdb29a2a3b6f449e27bf2da2b7d95b3
Auto-generated-cl: translation import
2014-03-17 13:23:36 -07:00
Geoff Mendal f57c1564b5 Import translations. DO NOT MERGE
Change-Id: I861674b0b1872d2b7117aa38fef99c29b04730a1
Auto-generated-cl: translation import
2014-03-17 13:23:14 -07:00
Selim Cinek e04e8b2a14 Fixed a crash when an image with an odd width/height was selected
Due to an internal rounding in the renderer, the calculations
for the cropping area could be slightly offset, getting out
of the image boundaries. I sanitized the rect by ensuring they
are inside the image.

Bug: 12174629
Change-Id: I5e08c83fe3e9cd48254fa6c8ba9cef77ab8a51a6
2014-03-14 18:27:23 +01:00
Chris Wren 04960cd2e5 Merge "also backup icon assets for shortcuts." into ub-now-mister-ugly 2014-03-13 20:20:01 +00:00
Baligh Uddin 5f179e6eaf am 441874b1: (-s ours) Import translations. DO NOT MERGE
* commit '441874b19d79db51ea3488983f13b6e11b0cf796':
  Import translations. DO NOT MERGE
2014-03-13 09:47:59 -07:00
Baligh Uddin f0bea657e9 Merge "Import translations. DO NOT MERGE" into ub-now-mister-ugly 2014-03-13 16:45:09 +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
Baligh Uddin 5902be0b67 Import translations. DO NOT MERGE
Change-Id: Ie89bb39579db28c38425b05d1fa62cbcbf77696f
Auto-generated-cl: translation import
2014-03-12 12:44:33 -07:00
Baligh Uddin 441874b19d Import translations. DO NOT MERGE
Change-Id: I49d96e762bcf0c738d44b46faf5e8db20d005db5
Auto-generated-cl: translation import
2014-03-12 12:44:12 -07: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 706ab0d07a Merge "Make classes that extend ItemInfo public." into ub-now-mister-ugly 2014-03-05 22:19:46 +00:00
Selim Cinek 459875d09e Catching security exception when activity destroyed
Fixed a bug where an asynctask tried to load an image
even after the activity was destroyed leading to a
security exception since the permission could not be granted anymore.

Bug: 12760267
Change-Id: I76ee2c0ab268b0ab4bde606706046caf0e39f1e9
2014-03-05 14:56:42 +01: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
Selim Cinek 10acea596e am 0c255a94: Merge "Changed behaviour of the wallpaper picker." into ub-now-lunchbox
* commit '0c255a946788499d7f169429890d5a423426593b':
  Changed behaviour of the wallpaper picker.
2014-03-04 01:50:44 -08:00
Selim Cinek 0c255a9467 Merge "Changed behaviour of the wallpaper picker." into ub-now-lunchbox 2014-03-04 09:48:32 +00: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
Selim Cinek ffed65886e Changed behaviour of the wallpaper picker.
When opening the picker, the currently chosen wallpaper is
shown in the background.
In this change also the nullpointer was fixed when deleting
the currently selected wallpaper and setting it, because we
revert to the old wallpaper in that case.
When going into the same live wallpaper than the currently
selected we are going back to home if the user sets it or
goes back now, in order for the user not to loose state.
The real fix for this will be done later when the following
bug will be fixed: b/13241760

Bug: 12063773
Bug: 13219612
Change-Id: I7c6abb25755eca99c3255278e0884d1ff4749b55
2014-03-03 18:09:06 +01:00