Commit Graph

4597 Commits

Author SHA1 Message Date
Sunny Goyal 42e28092b3 Removing some eclipse warnings
Change-Id: I160feaee81b262be02446885fae643c0be71b7af
2015-08-17 12:56:19 -07:00
Sunny Goyal e3e05563b7 am d21f9404: Merge "Disabling auto restore of widgets. > Always show "Setup" button for a widget which has a config activity." into ub-launcher3-burnaby
* commit 'd21f9404da5c8cdc959b483a40876b02ced35e43':
  Disabling auto restore of widgets.   > Always show "Setup" button for a widget which has a config activity.
2015-08-14 19:28:53 +00:00
Sunny Goyal d21f9404da Merge "Disabling auto restore of widgets. > Always show "Setup" button for a widget which has a config activity." into ub-launcher3-burnaby 2015-08-14 19:23:57 +00:00
Sunny Goyal 84b4adc3fb Disabling auto restore of widgets.
> Always show "Setup" button for a widget which has a config activity.

Bug: 23155863
Change-Id: I60683889e76be830a76ac1245e079574aaf0ad10
2015-08-14 11:42:01 -07:00
Sunny Goyal 106bf64f4a Some cleanup around drag and drop
> Instead of resizing the rect for dragoutline in onDrow, store the resized rect itself
 > Remove unnecessary inverse matrix calculation

Change-Id: If13c3c5aaecba5a1d3a4f5d39199ed82e9662c62
2015-08-13 16:54:58 -07:00
Sunny Goyal e88491d66b am d468ee90: Merge "Reloading launcher whenever there is an external update to contentprovider, irrespective of the uri" into ub-launcher3-burnaby
* commit 'd468ee90911bee4d83e119500b52df1984107411':
  Reloading launcher whenever there is an external update to contentprovider, irrespective of the uri
2015-08-13 23:53:13 +00:00
Winson 4e7a1018bc Merge commit '97b0d08d' into manualmerge
Change-Id: Iac7e46fb2ac364c983beec6460f99ee1d6b11d32
2015-08-13 16:50:14 -07:00
Sunny Goyal d468ee9091 Merge "Reloading launcher whenever there is an external update to contentprovider, irrespective of the uri" into ub-launcher3-burnaby 2015-08-13 23:48:04 +00:00
Winson 97b0d08d92 Refactoring to ExtendedEditText. 2015-08-13 15:58:51 -07:00
Sunny Goyal d106418dee Reloading launcher whenever there is an external update to contentprovider, irrespective of the uri
Change-Id: If1a06da57171be30adb74f09ac256a8b03ab8549
2015-08-13 14:09:43 -07:00
Sunny Goyal 01d6688ed4 am 81056da1: Merge "Refreshing widget list when a package containing a widget changes" into ub-launcher3-burnaby
* commit '81056da1def5d872d26b6f8a4e4163f9d94871a3':
  Refreshing widget list when a package containing a widget changes
2015-08-13 20:08:28 +00:00
Sunny Goyal 81056da1de Merge "Refreshing widget list when a package containing a widget changes" into ub-launcher3-burnaby 2015-08-13 20:05:11 +00:00
Vadim Tryshev ea3355641e Fixing dragging with mouse.
If you click at the icon with mouse, then release without moving,
the framework won't generate DRAG_LOCATION events, and we'll assume
the the drag ended at (0,0) coordinate.

Fixing by updating coords at any event that has coordinates.

Bug: 22028725
Change-Id: I1872b479035e14aa9fece1532b05194fa86a4907
2015-08-13 10:48:08 -07:00
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