Commit Graph

4413 Commits

Author SHA1 Message Date
Adam Cohen b670f195ff Ensure the intro view is always the top view in the draglayer if it is present
-> On devices post-api-16, we can achieve this just with child drawing order
   but on level 16 devices, child drawing order doesn't give us touch
   dispatch which is problematic for the intro screen.

issue 13796017

Change-Id: Ibf89ae91d8489f2de1eb9c8f235a0e6e6aed1847
2014-04-08 16:56:09 -07:00
Adam Cohen c4cf34dedb Merge "Fix pre sdk-18 compatibility (crash in dispatchDraw)" into ub-now-mister-ugly 2014-04-07 22:32:58 +00:00
Adam Cohen 2d783ce2f4 Fix pre sdk-18 compatibility (crash in dispatchDraw)
issue 13801679

Change-Id: I25b997179fd8eb7cdec6fc48d81533fb1c3094ce
2014-04-07 14:12:54 -07:00
Adam Cohen 5955121742 Merge "Attempt to fix crash on workspace drag and drop on certain JB devices" into ub-now-mister-ugly 2014-04-05 00:13:46 +00:00
Winson Chung 69dffdb83a Disabling the focused hotseat app cling if GEL is not preinstalled on the device. (Bug. 13551957)
Change-Id: I24b25a0eada1ac9273a57b02d80a2451d08b02b0
2014-04-04 17:06:02 -07:00
Adam Cohen d3a4e420f8 Attempt to fix crash on workspace drag and drop on certain JB devices
issue 13801679

Change-Id: I4769220ddeab566a869050b20d6064809c70bc19
2014-04-04 16:53:02 -07:00
Adam Cohen eaabe7c89a Merge "Cleanup orphaned workspace items on db upgrade" into ub-now-mister-ugly 2014-04-04 20:42:10 +00:00
Adam Cohen 8f006edba2 Prevent exception in production when icons collide during bind
-> We only need to throw an exception for dogfooders so we can
   track the issue
-> Worst case, an icon is ignored, does not warrant a crash.

issue 12106766

Change-Id: I054a849eb3d65762dc5e1bf699c76655f687c3e8
2014-04-03 18:14:30 -07:00
Adam Cohen 119285e755 Cleanup orphaned workspace items on db upgrade
-> Any workspace item whose screen id is not present in the
   screens table is removed from the database. This is
   intended to restore database consistency.

issue 13741729

Change-Id: I9a04b4165f1d85541025fcf48ddf2ad9e39ae94e
2014-04-02 17:04:41 -07:00
Adam Cohen dcb173d0e3 Make sure the workspace screens don't get updated while workspace is loading
-> Found another path that could lead to the same issue
   [add shortcut with config activity to an existing folder,
   when config activity launches, kill launcher, configure
   shortcut. observe crash and data loss].
-> Plugged up above, and a couple other potential holes
-> Initial fix probably took care of the main issue

Issue 12523285

Change-Id: I29db9da4af4a8bf22047eb46bd49354447d04b8d
2014-04-01 14:31:51 -07:00
Adam Cohen 8440e7ce17 Merge "Increase delay before dismissing intro screen (issue 13691305)" into ub-now-mister-ugly 2014-03-31 15:10:34 +00:00
Adam Cohen 2252adea26 Increase delay before dismissing intro screen (issue 13691305)
Change-Id: I0b81d61b922278e0e72c3055086010612687c7d9
2014-03-28 15:29:07 -07:00
Adam Cohen 4a9423d6dd Add method to determine if first run activity has been shown (issue 13680732)
Change-Id: Ia0da4148fd0365c6ae9c3a5a4cff7118959f6382
2014-03-28 14:51:17 -07:00
Jason Monk 4dfbe82910 Merge "Fix missing stack trace on checkItemInfoLocked call" into ub-now-mister-ugly 2014-03-21 20:09:54 +00:00
Jason Monk 0bfccebc9b Allow the old launcher content URI to be overrided
Move the URI used to import favorites from launcher2 to be loaded
from a string resource.  This allows it to be overridden.

This will enable permissions fix for GoogleSearch.

Bug: 12058200
Change-Id: I31243fe89f545c9771d5cceffe1c9e7668a42bc5
2014-03-21 15:42:06 -04:00
Adam Cohen 36a6288545 Merge "Adding in-activity intro screen (issue 12905636)" into ub-now-mister-ugly 2014-03-20 22:34:11 +00:00
Jason Monk 8e19cf22a4 Fix missing stack trace on checkItemInfoLocked call
Just put this change into Launcher2, now adding to Launcher3

The call to checkItemInfoLocked from addItemToDatabase was missing a stack
trace so that if the check failed, the stack trace did not contain what
triggered the add.

Change-Id: Ia2e2aae20b16d4adadfe1da53b49e93073fab55c
2014-03-20 15:06:57 -04:00
Adam Cohen 432609a246 Adding in-activity intro screen (issue 12905636)
Change-Id: Ifb016ca6e5052fd91535b98a39f78569200955a8
2014-03-20 11:48:22 -07:00
Adrian Roos fa4c799a9b Fix concurrent drawable usage resulting in native crash
One of widget preview drawables was drawn concurrently from a thread pool,
causing a native Skia crash.

Bug: 12525890
Change-Id: I2dea7b86ba8b32237f40feff225657dcb2b0061b
2014-03-19 16:29:30 +01:00
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 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