Commit Graph

10334 Commits

Author SHA1 Message Date
Vadim Tryshev b021337ee4 Merge "Enabling accessibility dragging with the framework drag driver." into ub-launcher3-master 2015-08-12 17:54:19 +00:00
Sunny Goyal 2d648b057f Refreshing widget list when a package containing a widget changes
Bug: 20698931
Change-Id: I50bafac1fc0a855edb1ace633a8a6f87a5c3040e
2015-08-11 21:25:19 -07:00
Vadim Tryshev cc436d5d95 Fixing crash upon cancellation of an accessible drag.
This fixes perhaps an old bug.

If we started an accessible drag for an only item on a page,
then uninstalled the app while dragging, the page was removed
without unsetting its accessibility delegate. Later, the system asks
the delegate to do something, but the drag is over, and some pointers
are null, so everything crashes.

Fixing this.

Bug: 22028725
Change-Id: I85adcd42ae896603634994e20a7790792f7e84b1
(cherry picked from commit de1e67c388)
2015-08-12 00:50:35 +00:00
Vadim Tryshev 56e4098919 Enabling accessibility dragging with the framework drag driver.
We don't want to start a framework DND (with drop shadow etc.) in the accessibility mode.

Besides, framework DND fails to start and immediately cancels the DND operation
if it's started in the accessibility mode. Presumably, this happens because
the finger doesn't press the screen when this happens.

The right solution is not to instantiate a drag driver at all when an accessible
DND starts, which is what this CL does.

Bug: 22028725
Change-Id: Ic743ba3f8de037c15d4e70e3b7687cdd3518b2a3
2015-08-11 17:17:45 -07:00
Winson Chung d5b43b5556 am a2917f6a: Merge "Ensuring that AllAppsGridAdapter is public." into ub-launcher3-burnaby
* commit 'a2917f6a0b9a24accaf21d75c0e80701bb07e2ed':
  Ensuring that AllAppsGridAdapter is public.
2015-08-11 23:38:00 +00:00
Vadim Tryshev d209f9e4e9 Merge "Fixing crash upon cancellation of an accessible drag." into ub-launcher3-master 2015-08-11 23:34:27 +00:00
Winson Chung a2917f6a0b Merge "Ensuring that AllAppsGridAdapter is public." into ub-launcher3-burnaby 2015-08-11 23:33:55 +00:00
Winson eea9fa4022 Ensuring that AllAppsGridAdapter is public.
- Also show the search action when searching all apps

Change-Id: I3470b0da565e6d1bce637ce09384d966215a4ca7
2015-08-11 16:27:16 -07:00
Vadim Tryshev de1e67c388 Fixing crash upon cancellation of an accessible drag.
This fixes perhaps an old bug.

If we started an accessible drag for an only item on a page,
then uninstalled the app while dragging, the page was removed
without unsetting its accessibility delegate. Later, the system asks
the delegate to do something, but the drag is over, and some pointers
are null, so everything crashes.

Fixing this.

Bug: 22028725
Change-Id: I85adcd42ae896603634994e20a7790792f7e84b1
2015-08-11 16:21:04 -07:00
Sunny Goyal 3759d1bc59 am b0d868f7: Merge "Preventing zoom-in animation from running everytime the app updates." into ub-launcher3-burnaby
* commit 'b0d868f73037e0f732fa71d4bf557d4fcb1ed36c':
  Preventing zoom-in animation from running everytime the app updates.
2015-08-11 22:48:00 +00:00
Sunny Goyal b0d868f730 Merge "Preventing zoom-in animation from running everytime the app updates." into ub-launcher3-burnaby 2015-08-11 22:42:03 +00:00
Sunny Goyal 3fcab663a1 Preventing zoom-in animation from running everytime the app updates.
Bug: 22557455
Change-Id: I3ac1212a2f319397cd18be8f4452047d974312b8
2015-08-11 15:18:02 -07:00
Sunny Goyal a410e99205 am 6579e1ee: Disabling home screen migration logic
* commit '6579e1eee8a6fce44f020d40c3bbdbf245d6c12c':
  Disabling home screen migration logic
2015-08-11 21:03:31 +00:00
Vadim Tryshev 784d3a4a92 Merge "Fixing drag view transition jump for scaled-down icons." into ub-launcher3-master 2015-08-11 19:25:49 +00:00
Sunny Goyal 6579e1eee8 Disabling home screen migration logic
Change-Id: I506948852945bfb8ebd7a95fc951880ffe9a3e17
2015-08-11 12:10:34 -07:00
Vadim Tryshev d7d15dad7b Merge "Framework drag driver now sends new event type - exited window." into ub-launcher3-master 2015-08-11 18:22:51 +00:00
Winson Chung 0396828d05 am a1ee659e: Merge "Adding market search." into ub-launcher3-burnaby
* commit 'a1ee659e748b02ed74d8cafd3796a5c8ce5f1c44':
  Adding market search.
2015-08-10 22:59:20 +00:00
Winson Chung a1ee659e74 Merge "Adding market search." into ub-launcher3-burnaby 2015-08-10 22:55:40 +00:00
Vadim Tryshev ceed3b87dc Framework drag driver now sends new event type - exited window.
When drag exits Launcher window (for example, goes to Shelf) launcher doesn't get notified
and thinks the drag is still over it. For example if there is a moved shaking icon in Hotseat,
it will keep shaking.

Fixing this.

Bug: 22028725
Change-Id: Ie57572a57a324d426c9f6e57dc0bba56630e92df
2015-08-07 17:23:35 -07:00
Vadim Tryshev 37bd006b73 Fixing drag view transition jump for scaled-down icons.
There was a jump upon a transition from DragView to the framework shadow
for hotseat icons (which are scaled down).

Bug: 22028725
Change-Id: If4f5ed4501836667ff3a8eaa9da4577bdf98e880
2015-08-07 16:26:00 -07:00
Vadim Tryshev 9430ff23c8 Fixing 1-point jump upon switching from DragView to drag shadow.
Upon the end if the growth animation for DragView, we hide DragView and
show the framework DND drag shadow. Rounding problems caused shifting of the
drag image by 1 pixel when the transition happened.

Bug: 22028725
Change-Id: I2a2275a6d18c1a10ceecaecf8a279c6d11d8c7d8
2015-08-07 15:10:44 -07:00
Vadim Tryshev d07b5cd098 Merge "Better separation between DragDriver and DragController" into ub-launcher3-master 2015-08-07 18:56:07 +00:00
Winson Chung a454d4a3bb am 99eceebf: Merge "Fixing issue with miscalculation in updating container bounds." into ub-launcher3-burnaby
* commit '99eceebfaae1071cde2cf05f2874b8d94795b43a':
  Fixing issue with miscalculation in updating container bounds.
2015-08-07 18:00:53 +00:00
Adam Cohen 7657644fa1 am cf0c746e: Always log if Package is missing while loading default workspace
* commit 'cf0c746ec080ee528d4994c382562fda1e647752':
  Always log if Package is missing while loading default workspace
2015-08-07 18:00:52 +00:00
Winson Chung eb2b1c634a am 7573123c: Merge "Fixing invisible search bar" into ub-launcher3-burnaby
* commit '7573123c0518f338895d59ada6ec4a8e170f5bf5':
  Fixing invisible search bar
2015-08-07 18:00:52 +00:00
Sunny Goyal 513b69ba64 am a2a039b6: Using a reverse hashmap instead of indexOfValue in userManager
* commit 'a2a039b66f05a1164f954387b1c12a8fb4063e92':
  Using a reverse hashmap instead of indexOfValue in userManager
2015-08-07 18:00:51 +00:00
Sunny Goyal fc3a2711b3 am d1ea63f2: Removing some synthetic method creation
* commit 'd1ea63f24a751521e6c35cc06be0e548e0b04f23':
  Removing some synthetic method creation
2015-08-07 18:00:50 +00:00
Sunny Goyal f85602b00e am 7ca3250a: Merge "Creating a cache of users to avoid multiple calls to UserManager" into ub-launcher3-burnaby
* commit '7ca3250a10d608c06a733a92cd61a2feadb9007f':
  Creating a cache of users to avoid multiple calls to UserManager
2015-08-07 18:00:50 +00:00
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