Commit Graph

243 Commits

Author SHA1 Message Date
Chris Wren 803a4bec0f Drop support for remove all dead promises.
Bug: 12764789
Change-Id: Id876b66cf8da4388cb3ed5670a0bbdcf73f2982d
2014-07-01 17:13:04 -04:00
Chris Wren 40c5ed3039 Offer to delete broken promise icons.
Track state of promise in the info, not the view.
Fix bugs around moving promises to folders.
Fix bugs around filterign and removing promises.

Bug: 12764789
Change-Id: If5e8b6d315e463154b5bafe8aef7ef4f9889bb95
2014-06-27 15:17:56 -04:00
Kenny Guy 7bc272a11b Revert Cls stopping now-master running on googlefood
This reverts commits 01453e855f.
and 242bbe1b72.
"Add content description to bagded icons."
"Remove reflection now we are building against L"

Bug: 15833449
Change-Id: I81a5316f5619a9cd3b6ab9fd03b2ba96657b7f68
2014-06-24 11:43:19 +01:00
Kenny Guy 01453e855f Add content description to bagded icons.
Enabled accesibility so that icons badged by the
managed profile have a content description
that is different to the non-bagdged version.

Bug: 15106236
Change-Id: Id483273173d9539916eebd59111d179087526be3
2014-06-23 16:42:37 +01:00
Adam Cohen e25c5d1c94 Prevent discordant state between Workspace and Launcher (issue 15409018)
Change-Id: I13bb3e51da18998a5dade49c50e5fbf2266022d3
2014-06-18 10:38:31 -07:00
Adam Cohen 6f127a614c More defense for issue 14491953
Change-Id: I90de51c74e337d56aad891741233e6a857d89b62
2014-06-12 17:08:27 -07:00
Adam Cohen ea90f83e24 Check before suggesting default wallpaper dimensions
issue 14470153

Change-Id: Id00e9cb4bd2b769818ed61de65be8c1c0119e07d
2014-05-21 17:13:40 -07:00
Adam Cohen 824fcb3a3e Revert "Debugging wallpaper stuff on production device (to be reverted once built)"
This reverts commit f8dc557cf8.

Change-Id: I2a2ce9a067ec6df829eb23997661bb090daa64ff
2014-05-21 23:01:25 +00:00
Adam Cohen f8dc557cf8 Debugging wallpaper stuff on production device (to be reverted once built)
issue 14470153

Change-Id: I6c93b11f639d79163da0c3ce4e4053e304e0081e
2014-05-21 15:53:11 -07:00
Adam Cohen db364c3355 Fix crash when launcher dies while configuring a widget / shortcut
issue 15014018

Change-Id: I083fa40fb2fd0eb217852e5d088fa5e18e5f5697
2014-05-20 14:25:37 -07:00
Adam Cohen c29217b08f Revert "Debugging something for wallpaper noise issue"
This reverts commit 211d38c784.

Change-Id: I2c3e69e8951c3435f51d9ac43eddf0b56157b792
2014-05-18 03:17:15 +00:00
Adam Cohen 211d38c784 Debugging something for wallpaper noise issue
issue 14470153

Change-Id: Ifdde30b9a26443cdcf480f0ed4cfed2d612d09cf
2014-05-17 18:17:00 -07:00
Adam Cohen 6268f2db4c Disable the folder cling in two cases
-> When the user creates a new folder
-> When the user drags an existing folder
-> The folder cling gets cut off in certain instances
   and until we make it more extensible (not worth
   it right now), we're disabling it in the problematic
   cases. Also, in the problematic cases, the user
   is demonstrating some advanced knowledge, so
   it's somewhat justifiable.

issue 14491765

Change-Id: Ib15d2f097c51a9b755f04b95ed6ef468d3bacc60
2014-05-16 18:18:20 -07:00
Adam Cohen e1c92c4afa Remove debug println
Change-Id: I8bf8f948394ed2ecbcb3da3761506c9aa5752494
2014-05-09 16:40:59 -07:00
Adam Cohen 689ff16ea2 Cleanup pattern for removing the extra empty screen after drag operations
-> Fixes a couple bugs: issue 12179908, issue 12372657, issue 13287732

Change-Id: I24b5abe8e432ea331eeb77407120a8cec28f6376
2014-05-09 15:05:53 -07:00
Kenny Guy ed13187a74 Launcher3 multi-profile support
Use LauncherApps API and badging APIs instead of PackageManager.
With compatability layer that uses PackageManager pre L.

Adds support to show apps from current user and any managed profiles.

Background: Managed profiles are user sandboxes that are visible from
the primary user and can be launched as if they are a part of this user.
A launcher should now be capable of listing apps from this user as well
as related profiles of this user.

Launching of activities is now via the LauncherApps interface, to allow
for cross-profile app launching. Only activities with category LAUNCHER
can be added as a shortcut on the workspace for a managed profile.

Widgets and non-application shortcuts are only supported for the
current profile. Widgets from the managed profile are not available.

Change-Id: I5f396b1bf7f91ad91a5710ea4a0fd14573972eb9
2014-04-30 23:43:00 +01:00
Adrian Roos 8f3f6830f2 Sanity check screenId before persisting ItemInfo.
Bug: 13447571
Change-Id: I014dcf1eb313c2312953716fb53e542caaeb285b
2014-04-28 15:45:55 +02:00
Jason Monk 031d0ff4ad Merge "Fix accessibility announce on apps page" into ub-now-nova 2014-04-24 16:33:07 +00:00
Jason Monk ed05f09aa1 Fix accessibility announce on apps page
Stops the workspace from announcing incorrectly while the apps
page is open, also makes the apps announce which page on opening.

Bug: 13006306
Change-Id: I723011fc55c24b66604a24b16c17bac4f5653f84
2014-04-24 10:13:05 -04:00
Mathew Inwood 859002985e Take account of bounds set on drag drawables.
If bounds are set on a compound drawable in a textview, drawing it into a
bitmap set to the intrinsic size of the drawable results in it being scaled
down in the top corner. Scaling it down again into the grid icon size then
gives a tiny icon.

Use the drawable bounds if any are set, otherwise use the intrinsic size.

Bug: 14103508
Change-Id: Idadd7bb891dc33d092eb9ceb3025b9a5d9e1bfd8
2014-04-16 14:17:39 +01:00
Winson Chung babb53ef8f Adding external path for drag/drops.
Change-Id: I3b315c4d14cadb9210f15d3c3e0b9545f4591be4
2014-04-14 18:44:21 -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
Anjali Koppal 62d18edcc7 Add Launcher.onDragStarted
Change-Id: Iac59685211905580460d0a0a16d9c7f00c61fac9
2014-03-17 15:06:41 -07: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
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
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
Adam Cohen 65e43032c8 Fix build
Change-Id: I17944c557970ed35e1bc67f6f3e3372ff88651ad
2014-03-03 11:37:27 -08: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
Adam Cohen ec0d61d79e Fix NPE in when dropping from all apps (issue 12917451)
When dropping from all apps, accept drop was returning true if the item
was above a folder, however, when it came time to complete the drop,
the folder wouldn't accept the item. This can be prevented by increasing
the criteria in acceptDrop.

Change-Id: Ib644ec45984e8366c33bb674f3d3a76e22ed5160
2014-02-07 16:34:51 -08:00
Chris Wren b6d4c2827a update placeholder on package install or restore
Bug: 10778992
Change-Id: I3293d8bab8ae0ef49fc5554531bba5bd6f70932c
2014-02-06 15:05:16 -05:00
Derek Prothro 93b92d0895 Merge "Fix black flash during rotation of -1 screen with GEL." into ub-now-lunchbox 2014-01-30 22:03:55 +00:00
Derek Prothro dadd984a89 Fix black flash during rotation of -1 screen with GEL.
We need to make sure the custom content is adding synchronously
while the rest of the workspace is being created. If we wait
for it to be added in a separate run task, we see a black
flash during rotation.
Also rename a few methods and remove obsolete methods.

Bug: 11802691
Change-Id: I3f6500aa1fabe68cef59ad8c764877f954986a99
2014-01-30 15:55:48 -05:00
Michael Jurka 2a4f4928a9 Fix bug: Scroll position reported incorrectly to live wallpapers
Bug: 11189265

Change-Id: I410f318df4e43ed13d33889a8158a03438a6174f
2014-01-30 14:21:09 +01:00
Jorim Jaggi 00c3184fa6 Merge "Fix NPE in Workspace.onDropCompleted" into jb-ub-now-kermit 2014-01-14 23:01:48 +00:00
Jorim Jaggi eedb00a674 Fix NPE in Workspace.onDropCompleted
Bug: 11627757
Change-Id: I9dc86856d4bc00253d6350d157be541a8c46888d
2014-01-14 13:02:43 -08:00
Winson Chung a694524047 Adding migration Clings. (Bug 11973614)
- Refactoring Launcher cling code out to LauncherClings.

Change-Id: Iff4f84f5b8bfeb69b1be0b4802022c3eb20b6f2c
2014-01-10 22:28:16 +00:00
Adam Cohen 309260ee59 Merge "Don't notifyPageSwitchListener until page settles (issue 12069757)" into jb-ub-now-kermit 2013-12-13 23:59:53 +00:00
Adam Cohen 674531f261 Don't notifyPageSwitchListener until page settles (issue 12069757)
-> Should address the dismiss timer not working quite right

Change-Id: I63ad32d8f7c37f1a090ff1dd6024eeb7c0c6ce65
2013-12-13 15:59:01 -08:00
Michael Jurka 7ad868b86e Create separate project for Wallpaper Picker
Change-Id: Id9e855780b9fb68c63eb6e9f6c19bcbce28a6fd5
2013-12-13 12:50:32 +01:00
Adam Cohen 69a10949d6 Merge "Fix NPE from feedback (issue 12106858)" into jb-ub-now-kermit 2013-12-13 00:24:06 +00:00
Adam Cohen 4de0974c46 Fix NPE from feedback (issue 12106858)
Change-Id: I63f7f73b85d4c1652d1e722f94c51b567a83cc6b
2013-12-12 16:16:55 -08:00
Winson Chung b6147f8578 Merge "Adjusting grid for tablets and fixing incorrect resources for large tablets." into jb-ub-now-kermit 2013-12-12 00:35:47 +00:00
Winson Chung 1239b9da89 Merge "Fixing issue with Widget sizes being icorrectly reported." into jb-ub-now-kermit 2013-12-11 23:52:07 +00:00
Winson Chung dcd27ba909 Fixing issue with Widget sizes being icorrectly reported.
Change-Id: I8474514cc3722d8450c707b7fd1ccea2ea344a59
2013-12-11 15:28:15 -08:00
Winson Chung 59a488ac03 Adjusting grid for tablets and fixing incorrect resources for large tablets.
Change-Id: I4c2a058da934bef14f5be3c53ebda940aeb990ca
2013-12-10 17:52:40 -08:00
Adam Cohen fa3c58f647 Adding reorder hinting, hopefully will help with (issue 10654628)
-> Adds instant feedback that reorder _will_ happen, so hopefully will
   improve perceived disambiguation

Change-Id: Icd99e7beeb87e79627a6b9fc78a9132781410379
2013-12-09 18:04:57 -08:00
Michael Jurka 566bdc3759 Merge "Update suggested wallpaper dimensions in onResume" into jb-ub-now-kermit 2013-12-05 13:45:00 +00:00
Adam Cohen 531a5c324e am b0ee0810: Add guards for restoreInstanceState (issue 11982812)
* commit 'b0ee08109ec89959d9bbd526c6e5f7ab96c8c3ea':
  Add guards for restoreInstanceState (issue 11982812)
2013-12-03 17:59:52 -08:00
Michael Jurka a6a0547fa6 Update suggested wallpaper dimensions in onResume
If another launcher runs in between, it might
change the suggested dimensions. This fixes that
case.

Bug: 11667475
2013-12-03 15:33:12 -08:00
Adam Cohen b0ee08109e Add guards for restoreInstanceState (issue 11982812)
Change-Id: Ic4c632a956130ab28843085490dc1badb39b0e8c
2013-12-03 10:52:21 -08:00