Commit Graph

16456 Commits

Author SHA1 Message Date
Winson 2a87fe8c41 resolved conflicts for merge of 0ad33066 to ub-launcher3-master
Change-Id: I5dbbaaf9fb03ed3003174154ea7d7dbae9048a70
2015-08-07 10:37:21 -07:00
Winson Chung 99eceebfaa Merge "Fixing issue with miscalculation in updating container bounds." into ub-launcher3-burnaby 2015-08-06 23:06:16 +00:00
Winson b0ca1a225f Fixing issue with miscalculation in updating container bounds.
- There was an issue with the previous logic where the test of whether
  the search bounds changed would always be false if valid search bounds
  were given.  This in conjunction with the fact that the padding was
  changed to only take the bounds left/right into account, meant that
  the container bounds would not be updated if the search bar bounds
  shifted via the insets.

Bug: 22918919
Change-Id: Ia810ddc7a56eae4afc0c7cd558fa6dc9e8e7a95b
2015-08-06 15:30:08 -07:00
Adam Cohen cf0c746ec0 Always log if Package is missing while loading default workspace
Change-Id: I7f2e5a9aabdf1fc192ad7912aaefa3f41c059ff1
2015-08-06 14:07:49 -07:00
Vadim Tryshev d84bcf1973 Merge "Preventing FolderEditText from stealing drag events." into ub-launcher3-master 2015-08-06 20:40:12 +00:00
Vadim Tryshev 7aa44f5327 Preventing FolderEditText from stealing drag events.
Bug: 22028725
Change-Id: I3efe98f3d58e49322f867b8bab111c0b36d82699
2015-08-06 13:11:31 -07:00
Winson Chung bedf9232eb Adding market search.
Change-Id: Id41615653cd4fa76213add4595418ad0cc6e7852
2015-08-06 12:22:38 -07:00
Jun Mukai 464d13cd48 Add KeyEvent handler to LauncherClings.
When the longpress clings such like welcome message appears,
the key events should be limited as follows:
- normal keys (generates printable glyphs) should be prevented,
  otherwise they come to the underlying searchbox.
- it should be dismissed on Menu keys, which goes to the overview
  mode.

Bug: 22982955
Change-Id: I7272b0809bfaa3c08ba77b01383cf54f19390d95
2015-08-05 17:25:29 -07:00
Winson Chung 7573123c05 Merge "Fixing invisible search bar" into ub-launcher3-burnaby 2015-08-05 21:19:04 +00:00
Winson a1f79d3e16 Fixing invisible search bar
- We used to rely on the state transition to inflate the search
  widget after the permission to bind widgets was granted, which
  is fragile.  Now we try and inflate the search widget after
  user grants the permission if necessary.

Bug: 22515084
Bug: 22980143
Change-Id: Id111d263bc8a864e0fa652cfd0e07e66ec690fe7
2015-08-05 21:18:53 +00:00
Sunny Goyal a2a039b66f Using a reverse hashmap instead of indexOfValue in userManager
Bug: 22980139
Change-Id: I87b633d194ff4e1529dd679dc02da573ed374207
2015-08-05 13:23:25 -07:00
Sunny Goyal d1ea63f24a Removing some synthetic method creation
Change-Id: Icb6b38f78aa56ad2c11e2ccc8005994ac4b86a91
2015-08-05 12:33:05 -07:00
Sunny Goyal 7ca3250a10 Merge "Creating a cache of users to avoid multiple calls to UserManager" into ub-launcher3-burnaby 2015-08-05 19:22:56 +00:00
Winson Chung 0ad3306684 Merge "Refactoring search bar animations." into ub-launcher3-burnaby 2015-08-05 19:21:03 +00:00
Winson Chung 006ee269ba Refactoring search bar animations.
- This refactoring ensures that LauncherStateTransition does not
  do its own animation on the QSB, and that all animations to the
  SearchDropTargetBar go through its own animators.

Bug: 22515084

Change-Id: Ia7d13c44d861eac7517076b52a9651a90911ed0a
2015-08-05 12:04:06 -07:00
Jun Mukai f0033da0dd Suppress focusability of normal launcher descendants when a popup opens.
Bug: 22563223
Change-Id: Iebee7c0c858a4d48524b3d5415e4f6d39861c49a
2015-08-05 10:31:48 -07:00
Sunny Goyal f485a7e52e am dc352761: Merge "Removing account manager calls" into ub-launcher3-burnaby
* commit 'dc352761ae542087825227d773ec0b039f0aaaf0':
  Removing account manager calls
2015-08-04 23:29:01 +00:00
Vadim Tryshev ca51dcd6ca Better separation between DragDriver and DragController
Now DragDriver uses DragController through DragDriver.EventListener
interface. I hope that this will make relations between 2 classes clearer,
and will help avoiding mess during future development.

Also, some small cleanups.

Bug: 22609426
Change-Id: Ibaf61804ab931743f2f913fac11bf24ebf9a36c8
2015-08-04 16:23:23 -07:00
Sunny Goyal c679ed6233 Removing account manager calls
Change-Id: Ic88139f6ef34046eb3b551d8a75d5f97e1fe3d52
2015-08-04 15:10:12 -07:00
Vadim Tryshev ba16c54220 Merge "Enabling framework DND in N+." into ub-launcher3-master 2015-08-04 21:30:42 +00:00
Vadim Tryshev 9de91278a8 Enabling framework DND in N+.
Also, making the drag shadow opaque.

Bug: 22028725
Change-Id: I2aa61d3906cb9e9c33003bc6e485b9ff1980b9f4
2015-08-04 14:23:46 -07:00
Sunny Goyal 823fd50902 Creating a cache of users to avoid multiple calls to UserManager
Bug: 22805101
Change-Id: I9cd270efd74fdd34a7eb738fc25797e6f1bf2487
2015-08-04 12:37:05 -07:00
Sunny Goyal f9ada46270 am 317698bd: Loading high resolution icons for first 3 items in a folder
* commit '317698bd012c1930b83bb4e2e47ac9e363fa6c6a':
  Loading high resolution icons for first 3 items in a folder
2015-08-04 18:09:20 +00:00
Sunny Goyal 317698bd01 Loading high resolution icons for first 3 items in a folder
> Sometimes a folder gets rearranged, without updating the model,
   like when an app in uninstalled. In that case, we need to update
   the icons for folder items, which were previously hidden

Bug: 22813360
Change-Id: I99754911c969bf2153efb2948c226c1c69219b88
2015-08-04 11:05:15 -07:00
Sunny Goyal 3c938a7e0d resolved conflicts for merge of 3f7550c1 to ub-launcher3-master
Change-Id: I3bb155473d48832e496a8983f84c20e6e935fa41
2015-08-04 10:33:30 -07:00
Sunny Goyal 3f7550c1ed Merge "Calculating widget minSpans and spans statically/independent of orientation > Filtering the widget list and excluding widgets which dont fit the grid > setting minSpans for the widget item when binding." into ub-launcher3-burnaby 2015-08-04 17:27:48 +00:00
Sunny Goyal 488d4bdf26 resolved conflicts for merge of c451da70 to ub-launcher3-master
Change-Id: I738fa16f82b3f3f1f6c63c5d1ce81347ade6467a
2015-08-04 10:26:12 -07:00
Sunny Goyal c451da7059 Merge "Replacing exception with a log, when uninstalling an app leads to an illegal state" into ub-launcher3-burnaby 2015-08-04 02:32:57 +00:00
Sunny Goyal 912bdfcffa Replacing exception with a log, when uninstalling an app leads to an illegal state
Bug: 22491055
Change-Id: Iaf5fe20b717102bdb0a5442dcc33efea30c50d47
2015-08-03 19:31:17 -07:00
Sunny Goyal 233ee964a9 Calculating widget minSpans and spans statically/independent of orientation
> Filtering the widget list and excluding widgets which dont fit the grid
 > setting minSpans for the widget item when binding.

Bug: 22541314
Bug: 22559137
Change-Id: Ieda48b56c95bee0c7ec71dd691af7e23e2d43db6
2015-08-03 16:39:49 -07:00
Winson Chung 790b7ad28e am 153b02a5: Merge "Remove handler for searchables changed broadcast." into ub-launcher3-burnaby
* commit '153b02a5e69c99b1154eea107da6b2fba4c6f3a3':
  Remove handler for searchables changed broadcast.
2015-08-03 22:20:10 +00:00
Winson Chung 153b02a5e6 Merge "Remove handler for searchables changed broadcast." into ub-launcher3-burnaby 2015-08-03 22:14:53 +00:00
Winson Chung 88fa741e50 Remove handler for searchables changed broadcast.
Bug: 22515084
2015-08-03 14:25:28 -07:00
Sunny Goyal 4ac89e2444 Merge "Several animation calls cleanup" into ub-launcher3-master 2015-08-03 19:23:16 +00:00
Vadim Tryshev 90c438ed38 Merge "Code to enable dragging to System UI shelf." into ub-launcher3-master 2015-08-03 17:54:12 +00:00
Sunny Goyal 6eeab68fd4 Fixing drag outline positions for folder over hotseat
Bug: 22506247
Change-Id: Ia2508307554089205fd678987454e81cb811a59b
(cherry picked from commit 92bce43164)
2015-08-03 17:19:37 +00:00
Sunny Goyal 7808e27363 am 8f375d1e: Merge "Enabling logging for migration task" into ub-launcher3-burnaby
* commit '8f375d1e68cdc67ce693a7693a2175ef5cb3b4eb':
  Enabling logging for migration task
2015-07-31 22:06:40 +00:00
Sunny Goyal 8f375d1e68 Merge "Enabling logging for migration task" into ub-launcher3-burnaby 2015-07-31 22:01:31 +00:00
Sunny Goyal e745f451a5 Merge "Removing boot receiver." into ub-launcher3-master 2015-07-31 22:01:16 +00:00
Winson Chung 1493662849 am e990d495: Merge "Fixing minor memory leak with name comparator." into ub-launcher3-burnaby
* commit 'e990d49534bb61606bcf3e61fa3c26e088d1b854':
  Fixing minor memory leak with name comparator.
2015-07-31 20:12:14 +00:00
Winson Chung 2285b30003 am ec70312d: Merge "Fixing issue with flash during overview transition." into ub-launcher3-burnaby
* commit 'ec70312dea4083416d2d132ea8853455b0dec616':
  Fixing issue with flash during overview transition.
2015-07-31 20:09:03 +00:00
Winson Chung e990d49534 Merge "Fixing minor memory leak with name comparator." into ub-launcher3-burnaby 2015-07-31 20:08:57 +00:00
Sunny Goyal 5d2fc32e6d Several animation calls cleanup
> Using View property instead of strings to avoid extra reflection step
> Using ViewPropertyAnimator when several properties are being animated

Change-Id: I41625643b38b70bac11e2c81d18058ec878d73bd
2015-07-31 13:07:14 -07:00
Winson Chung ec70312dea Merge "Fixing issue with flash during overview transition." into ub-launcher3-burnaby 2015-07-31 20:04:08 +00:00
Sunny Goyal d934e0b0b7 Enabling logging for migration task
Bug: 22353460
Change-Id: I8a9a8ea0d5523acb6d2376920535a9f4f519525d
2015-07-31 13:03:11 -07:00
Winson Chung e8f1d047b1 Fixing issue with flash during overview transition.
- This is due to the TransitionDrawable which does not actually
  start an animation until it is first drawn.  This workaround
  will just immediately reset the transition if it is not currently
  visible instead of animating (which is actually deferred until
  the next animation into overview mode).

Bug: 22414257
Change-Id: Id481303d0c99a20c1d16396c024ab50303f45576
2015-07-31 12:59:11 -07:00
Sunny Goyal c1729a4d15 resolved conflicts for merge of e5bb705f to ub-launcher3-master
Change-Id: Id7ec170a3c4b1415b18ad46a18d7ea69595a8992
2015-07-31 12:53:08 -07:00
Sunny Goyal e5bb705fb7 Homescreen migration from a larger grid to a smaller grid.
Adding support for restoring from a larger device, if the grid size
difference is not more that 1.
During restore add all the items in the DB, and run a one-time migration
the next time launcher starts.

The migration strategy is defined in ShrinkWorkspaceTask.java which involves
resizing, moving and removing some items.

Change-Id: I6ee411f6db5bf0152b527e16146a88c56dec2d97
2015-07-31 12:03:33 -07:00
Winson Chung 452d6ba3bd am 3ea54fdb: Merge "Fixing issue with accessibility falsely reporting app count when there are no search results." into ub-launcher3-burnaby
* commit '3ea54fdb490b973e2754cb438c7341e35df3b4cc':
  Fixing issue with accessibility falsely reporting app count when there are no search results.
2015-07-31 04:10:14 +00:00
Winson Chung e940248d6b am 1014e7de: Merge "Prevent crash when flattening ComponentKey to string with invalid user." into ub-launcher3-burnaby
* commit '1014e7de0e6c62587b507342f8b477ea84fa635d':
  Prevent crash when flattening ComponentKey to string with invalid user.
2015-07-31 04:10:12 +00:00