Commit Graph

10334 Commits

Author SHA1 Message Date
Sunny Goyal 0038ac1baf am bcbc2ec2: Merge "Removing call to isButtonPressed as its only Lollipop and above" into ub-launcher3-burnaby
* commit 'bcbc2ec2cd2673b5fca40f8458f75a7712410dda':
  Removing call to isButtonPressed as its only Lollipop and above
2015-08-24 17:20:59 +00:00
Sunny Goyal bcbc2ec2cd Merge "Removing call to isButtonPressed as its only Lollipop and above" into ub-launcher3-burnaby 2015-08-24 17:15:01 +00:00
Mady Mellor aca16cd0f7 Merge "Refactor StylusEventHelper to provide onButtonPress/Release methods" into ub-launcher3-master 2015-08-21 18:45:43 +00:00
Mady Mellor bb83520a62 Refactor StylusEventHelper to provide onButtonPress/Release methods
This will enable an easier migration to the new M APIs for identifying
button presses from stylus / other tools.

Bug: 20430722
Change-Id: I41cfa6eff8d76bb83cf1bdaf6623ec1092ed554c
2015-08-21 11:18:14 -07:00
Sunny Goyal 6e830eb302 Merge "Removing multi_process access to shared preferences" into ub-launcher3-master 2015-08-21 18:13:13 +00:00
Sunny Goyal 21bf531499 Removing multi_process access to shared preferences
Change-Id: If802245632c30d4f383013203fb2e0349ebc14fe
2015-08-21 11:08:24 -07:00
Sunny Goyal 6f326e95a0 am 93adff28: Merge "Using the usermanager api to get creation time" into ub-launcher3-burnaby
* commit '93adff28ed9b6bf06eba97c1266b3fb911eca6a0':
  Using the usermanager api to get creation time
2015-08-21 16:47:09 +00:00
Sunny Goyal ad0c2f28ce Using the usermanager api to get creation time
Bug: 22539048
Change-Id: I17647f2456434ca66a9778300e1a2910cec171d4
2015-08-21 09:24:01 -07:00
Winson 0609c15a60 am 81c5f7e3: Fixing issue with search bar not being visible.
* commit '81c5f7e39727085e1a8915cc36e9cbf2bb085890':
  Fixing issue with search bar not being visible.
2015-08-20 22:34:10 +00:00
Winson 81c5f7e397 Fixing issue with search bar not being visible.
- If you queue up two SearchBarDropTarget state transitions one right after
  another, the second animation will skip (since the values haven't started
  animating yet) and the first animation will complete instead, leaving the
  visibility of the search and drop target bars at odds with the current
  bar state.
- Instead, we should cancel all existing animators first, such that if we
  are already in the final state, no animations will run, and the correct
  bars will be visibile.

Bug: 23201830
Change-Id: I1f8e802821ef2b4904a3efa7edbea6ae615479b9
2015-08-20 22:29:49 +00:00
Sunny Goyal 2e7e5776d2 Merge "General code refactoring > Removing utility method for isAttachedToWindow > Moving logic to calculate cell size from workspace to DeviceProfile > Replacing some constants with xml resource variables > Saving the item info using content values for better compatibility with other methods" into ub-launcher3-master 2015-08-20 21:30:12 +00:00
Winson 17fa39222d am 6779595b: Updating the scrollbar to make the fastscroller more visible.
* commit '6779595bec64fa4503c22f75c8e245a449fe665d':
  Updating the scrollbar to make the fastscroller more visible.
2015-08-20 19:59:40 +00:00
Sunny Goyal 756cd26592 General code refactoring
> Removing utility method for isAttachedToWindow
  > Moving logic to calculate cell size from workspace to DeviceProfile
  > Replacing some constants with xml resource variables
  > Saving the item info using content values for better compatibility with other methods

Change-Id: Idd612633d97a6241cb31148df9466031374bd5a0
2015-08-20 12:56:58 -07:00
Winson 6779595bec Updating the scrollbar to make the fastscroller more visible.
Bug: 20035978
Change-Id: I56a865262cd07e6af11b4374a7e6354710116dcd
2015-08-20 19:51:08 +00:00
Winson Chung 7b7d6d09ee am a67cce2c: Merge "Tweaking fast scroller to follow touch closer." into ub-launcher3-burnaby
* commit 'a67cce2cb3b7d6fcf53ce1390238130194c393e5':
  Tweaking fast scroller to follow touch closer.
2015-08-20 19:31:53 +00:00
Winson Chung a67cce2cb3 Merge "Tweaking fast scroller to follow touch closer." into ub-launcher3-burnaby 2015-08-20 19:26:00 +00:00
Winson d2eb49e4c3 Tweaking fast scroller to follow touch closer.
- Issue: The fast scroller currently does not follow the touch input
  because fundamentally, the fixed scrollbar height and the mapping
  of the scroll space to the scrollbar space is fundamentally incompatible.
- This CL changes the fast scroller to allow it to detach when the user
  fast-scrolls, then re-attaches after the user scrolls the screen and
  the current scroll position for the scrollbar picks up the thumb position.
- Since the scroll position and the fast scroller thumb is now detached,
  we can change the distribution of the fast scroll letters to make it
  independent of the rows for each section and instead uniformly distribute
  it along the scrollbar, which allows for more stability.
- There are edge cases where this fails, especially when there are few
  apps, which we can investigate further.
  
Bug: 20035978

Change-Id: I8322f862107e6f330deff692885233706564bffd
2015-08-20 19:25:48 +00:00
Sunny Goyal 639e906a0f Fixing work folder addition logic
> Showing animation when folder is added
  > Not showing animation while cling is visible
  > Checking is loader completed from UI thread
  > Running bind complete runnables when bind is completed

Bug: 21772992
Bug: 23181585
Change-Id: I50742850da8294a877478ce02b107a026f68b563
2015-08-20 11:25:02 -07:00
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 322d556220 Moving a few testing classes to a separate package
Change-Id: Ied1c063de3e938695493e4937f554686e0719dad
2015-08-19 13:47:11 -07: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 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
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 522142af51 Removing call to isButtonPressed as its only Lollipop and above
Change-Id: I0d70befa25baf4864303833111652dbf1d19daa5
2015-08-17 13:04:40 -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 ac36643be1 Updating the UI for the pending widget view
Bug: 23183034
Change-Id: I2b3f6f765a51edf75e666186650bbd3cf7b66a7a
2015-08-17 11:16:31 -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