Commit Graph

10490 Commits

Author SHA1 Message Date
Vadim Tryshev 04540ca9e6 Merge "Moving drag-drop related code into a separate package." into ub-launcher3-master 2015-08-20 18:10:39 +00:00
Vadim Tryshev fedca43d39 Moving drag-drop related code into a separate package.
This is per an earlier CR comment "we should probably move all this code to its own package (launcher3.dragndrop) in a separate cl".

I'm not moving DragSource because it's referred from gsa code.

Bug: 22609426
Change-Id: Ia7204dab99c0c395c66b77143a2d60411153f5f3
2015-08-20 07:45:57 -07:00
Sunny Goyal ecf9bf4613 resolved conflicts for merge of 63aa4653 to ub-launcher3-master
Change-Id: I9fb7e452fdc646dc3d764d61d92755fa43edfa65
2015-08-19 14:16:41 -07:00
Sunny Goyal 63aa46531a Merge "Fixing empty screen created at the end, even when dragging the last item on the last screen." into ub-launcher3-burnaby 2015-08-19 21:08:10 +00:00
Sunny Goyal 8382fdc735 Merge "Updating logic for setting wallpaper desired size > Only setting desired size on wallpaper change for pre kitkat > Removing wallpaper change receiver from manifest > Removing multi-process wallpaper shared prefs for kitkat+" into ub-launcher3-master 2015-08-19 20:29:32 +00:00
Sunny Goyal 4b17147c28 Updating logic for setting wallpaper desired size
> Only setting desired size on wallpaper change for pre kitkat
  > Removing wallpaper change receiver from manifest
  > Removing multi-process wallpaper shared prefs for kitkat+

Bug: 23353784
Change-Id: Iba72d32871ee50b75807e2284a73a691bcddc472
2015-08-19 12:59:29 -07:00
Winson Chung bf4c1d402e am 1cd32a21: Merge "Deferring the move to the default screen until after we callback to the callbacks." into ub-launcher3-burnaby
* commit '1cd32a2144dc1a620e6a22e5a05b489ec86abb18':
  Deferring the move to the default screen until after we callback to the callbacks.
2015-08-19 19:22:15 +00:00
Winson Chung 1cd32a2144 Merge "Deferring the move to the default screen until after we callback to the callbacks." into ub-launcher3-burnaby 2015-08-19 19:19:26 +00:00
Winson 15f8b17adb Deferring the move to the default screen until after we callback to the callbacks.
- Since move to default screen starts the scroller immediately, any delays in
  handling onNewIntent and onHomeIntent in the callbacks will cause the scroller
  to skip frames the next time it updates.  This change will defer updating the
  page to the default screen until after onNewIntent is called back (and all its
  posted runnables).

Bug: 22929080
Change-Id: Ibab6106938721702d4da23faaca99039861e10dc
2015-08-19 12:13:20 -07:00
Sunny Goyal 5f195074b7 Merge "Updating the ExifParsing code > Using system implementation of ExifInterface to read orientation > For inputstream, creating a temporary file with just the header since the system API only supports file input" into ub-launcher3-master 2015-08-19 18:39:28 +00:00
Sunny Goyal 7c3cccf427 Fixing empty screen created at the end, even when dragging the last item on the last screen.
Change-Id: If0d4faf0ca15e71facb6ed2fd81ed6a589527836
2015-08-18 18:49:08 -07:00
Sunny Goyal 2563b3b956 Updating the ExifParsing code
> Using system implementation of ExifInterface to read orientation
  > For inputstream, creating a temporary file with just the header
    since the system API only supports file input

Change-Id: I19c94ff28e9d9bac14cd9b717de0ff165ba95595
2015-08-18 18:30:10 -07:00
Vadim Tryshev 08efde7e24 Merge "Bullet-proofing the drag window initial animation." into ub-launcher3-master 2015-08-18 23:36:41 +00:00
Sunny Goyal c268148f06 resolved conflicts for merge of 9fc953b9 to ub-launcher3-master
Change-Id: Ia3e845a2e336c846cceefdc2d1e8c6786753f1b1
2015-08-17 14:43:41 -07:00
Sunny Goyal 017a5c1e65 Merge "Removing some eclipse warnings" into ub-launcher3-master 2015-08-17 20:41:02 +00:00
Sunny Goyal 9fc953b94d Version code cleanup
> Renaming Lmp to Lollipop
  > Lollipop_MR1 instead of directly using 22
  > Using M APIs directly instead of reflection

Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
2015-08-17 13:26:01 -07:00
Sunny Goyal 42e28092b3 Removing some eclipse warnings
Change-Id: I160feaee81b262be02446885fae643c0be71b7af
2015-08-17 12:56:19 -07:00
Sunny Goyal e13d109178 am b62a9763: Merge "Updating the UI for the pending widget view" into ub-launcher3-burnaby
* commit 'b62a976346e1e9165bf3ab1c32e694caa0874dd2':
  Updating the UI for the pending widget view
2015-08-17 18:29:19 +00:00
Sunny Goyal b62a976346 Merge "Updating the UI for the pending widget view" into ub-launcher3-burnaby 2015-08-17 18:25:38 +00:00
Sunny Goyal ac36643be1 Updating the UI for the pending widget view
Bug: 23183034
Change-Id: I2b3f6f765a51edf75e666186650bbd3cf7b66a7a
2015-08-17 11:16:31 -07:00
Geoff Mendal d00b727247 am 13da3efb: (-s ours) Import translations. DO NOT MERGE
* commit '13da3efb7ad2100f8d1263fa8f13a21691b86501':
  Import translations. DO NOT MERGE
2015-08-17 14:13:53 +00:00
Geoff Mendal 604eae220d Import translations. DO NOT MERGE
Change-Id: Id00a6d96c81cea6db63aa12c1ec756e15c8bdd66
Auto-generated-cl: translation import
2015-08-17 07:10:12 -07:00
Geoff Mendal 13da3efb7a Import translations. DO NOT MERGE
Change-Id: Iedffa6e0a67907f0d86dfaf9b9863c4580cc3cf5
Auto-generated-cl: translation import
2015-08-17 07:09:24 -07:00
Vadim Tryshev 456e87e194 Bullet-proofing the drag window initial animation.
It’s unlikely, but still possible that something interesting will happen
during the 150 ms that DragWindows takes to slightly increase in size
before it gets hidden and replaced by the framework DND drag shadow.

This fix covers 2 possible events that can happen during that time:
1. The drag gets cancelled (for example because of an app uninstall).
Here, we eliminate a crash.
2. The user starts dragging the shadow. Before, this would start
scrolling the home page. Now, SystemDragDriver starts processing touch
events exactly as the InternalDragDriver would, until the growing
finishes. Afterwards, it switches to framework dragging.

Bug: 22609426
Change-Id: I73cc09fea45fcdcc6b75b13be1347da3e7c95509
2015-08-14 15:43:03 -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
Sunny Goyal f2c45762f2 am f29471c7: Merge "Ensure that crop view is loaded before applying a wallpaper" into ub-launcher3-burnaby
* commit 'f29471c751b173b91989709b9ce9ca811bf20244':
  Ensure that crop view is loaded before applying a wallpaper
2015-08-13 00:02:35 +00:00
Sunny Goyal f29471c751 Merge "Ensure that crop view is loaded before applying a wallpaper" into ub-launcher3-burnaby 2015-08-12 23:58:05 +00:00
Sunny Goyal 79a640ec35 Ensure that crop view is loaded before applying a wallpaper
Bug: 22293299
Change-Id: I64d5268cc263bbb6595a0b28bdd5ec73d540da41
2015-08-12 15:28:33 -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
Vadim Tryshev fc431166e2 am 56c32483: Merge "Fixing crash upon cancellation of an accessible drag." into ub-launcher3-burnaby
* commit '56c3248341685027ad2578e60e10b879b4397272':
  Fixing crash upon cancellation of an accessible drag.
2015-08-12 17:42:17 +00:00
Vadim Tryshev 56c3248341 Merge "Fixing crash upon cancellation of an accessible drag." into ub-launcher3-burnaby 2015-08-12 17:37:15 +00:00
Geoff Mendal 8e6faa2333 am a09130b3: (-s ours) Import translations. DO NOT MERGE
* commit 'a09130b307796a7c2428cb3e2a250c0028ce51c8':
  Import translations. DO NOT MERGE
2015-08-12 13:59:15 +00:00
Geoff Mendal c9711790d8 Import translations. DO NOT MERGE
Change-Id: I0c72cb0898a83df2ef859e274d00d63b2df2981e
Auto-generated-cl: translation import
2015-08-12 06:53:13 -07:00
Geoff Mendal a09130b307 Import translations. DO NOT MERGE
Change-Id: I6b0d7c6db67ef4de9a6ee0b7752cccf070223df4
Auto-generated-cl: translation import
2015-08-12 06:52:24 -07: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