Commit Graph

16456 Commits

Author SHA1 Message Date
Sunny Goyal fafd4c276e resolved conflicts for merge of ebfae6e2 to ub-launcher3-master
Change-Id: I1e0d5f1140e910b68322c4f5061d0a3c383899f0
2015-08-27 16:47:13 -07:00
Sunny Goyal ebfae6e266 Revert "Adding viewId for the QSB"
Using QSB widget id from xml

This reverts commit 9956859139.

Change-Id: I33c48cf074f2dc1cf509c2d9f1f19b40b91f6a22
2015-08-27 15:32:05 -07:00
Sunny Goyal bcd2874ab9 am 195a2983: Merge "Adding viewId for the QSB" into ub-launcher3-burnaby
* commit '195a29834f866806a592bae42c8f16f71b6f64aa':
  Adding viewId for the QSB
2015-08-27 21:23:22 +00:00
Sunny Goyal 195a29834f Merge "Adding viewId for the QSB" into ub-launcher3-burnaby 2015-08-27 21:12:55 +00:00
Sunny Goyal 9956859139 Adding viewId for the QSB
Change-Id: I4ad6bc8c0d94e60a4d354dfc29f456ca561fc500
2015-08-27 13:48:30 -07:00
Winson Chung e689ddcd8d am 027d3000: Merge "Fixing an issue where you would inadvertently start fastscrolling." into ub-launcher3-burnaby
* commit '027d30007d6c4448f3d07ccfb880eb0f25178314':
  Fixing an issue where you would inadvertently start fastscrolling.
2015-08-27 20:41:10 +00:00
Winson Chung 027d30007d Merge "Fixing an issue where you would inadvertently start fastscrolling." into ub-launcher3-burnaby 2015-08-27 20:37:33 +00:00
Winson Chung d2848d834b am 0fd3e545: Merge "Fixing issue with missing scroll bar after fast-scrolling and searching." into ub-launcher3-burnaby
* commit '0fd3e545a709902e67dd42440e351a22a6daa48c':
  Fixing issue with missing scroll bar after fast-scrolling and searching.
2015-08-27 19:39:49 +00:00
Winson Chung 0fd3e545a7 Merge "Fixing issue with missing scroll bar after fast-scrolling and searching." into ub-launcher3-burnaby 2015-08-27 19:36:07 +00:00
Winson 2605900854 Fixing issue with missing scroll bar after fast-scrolling and searching.
- This was due to us not re-attaching the thumb to the scrollbar after
  we scroll the view to the top explicitly without the user scrolling.

Bug: 23562489
Change-Id: I5932b9b3b9358e23c0ec23aa235644b4f27c43ea
2015-08-27 12:30:08 -07:00
Winson ec4845b3b1 Fixing an issue where you would inadvertently start fastscrolling.
- This would happen when you scroll near the thumb and pass through the
  area where the scrollbar was when the gesture started, and this CL
  prevents gestures that move beyond a fixed distance from the original
  touch position that is not already a fastscroll.

Bug: 23561678
Change-Id: I66226777671456a8919503dae4e92164ee10dd6d
2015-08-27 10:19:48 -07:00
Sunny Goyal 862ee52bc3 am 22aa3813: Pending bind callbacks should be cleared before starting the loader, similar to startBinding
* commit '22aa3813f818e46a096fef6490db2a60f2617eb7':
  Pending bind callbacks should be cleared before starting the loader, similar to startBinding
2015-08-27 17:09:02 +00:00
Sunny Goyal 22aa3813f8 Pending bind callbacks should be cleared before starting the loader,
similar to startBinding

Bug: 23310446
Bug: 19422965
Bug: 23304651
Change-Id: I4821b4c0c7796c33ad9691b6735235a220fa635a
2015-08-27 09:54:07 -07:00
Jun Mukai de6241e086 Fix keyboard focus for opening folder.
Previous patch Ia4ccc59ca27e560e470122d1b2c6c1eccb4caf9a was
reverted due to a weird behavior around folder name editing
with virtual keyboard.
Also, requestFocus() on doneEditingFolderName() did nothing
because the folder itself didn't get the focus at that point.

This CL addresses these issues:
- no change on the descendant focusability. Folder itself is
  focusable before its descendants.
- customize Folder.focusSearch(), so once the folder is focused,
  further focus cycle moves among its descendants.
- Folder requests its focus when it appears. Without this,
  the first arrow-key after opening a folder by touch moves
  the focus to the folder itself, which looks like nothing happened.

Bug: 22562679
Change-Id: I04375bd4cb69d463b9a95bebafa9c60142e95daa
2015-08-26 16:01:00 -07:00
Sunny Goyal 8f531dd988 resolved conflicts for merge of 20884fdc to ub-launcher3-master
Change-Id: I31b49ed83bf6fa966ad68b587e6fa472e87bc0e3
2015-08-25 17:08:57 -07:00
Sunny Goyal 20884fdc8d Merge "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" into ub-launcher3-burnaby 2015-08-25 23:58:07 +00:00
Winson Chung 0e31c31de7 am a79b18ad: Merge "Fixing widgets container inactive scroll bar color." into ub-launcher3-burnaby
* commit 'a79b18ad36ca9025ac4862c492260a656f61c7cf':
  Fixing widgets container inactive scroll bar color.
2015-08-24 22:50:36 +00:00
Winson Chung a79b18ad36 Merge "Fixing widgets container inactive scroll bar color." into ub-launcher3-burnaby 2015-08-24 22:47:52 +00:00
Winson 08d627566c Fixing widgets container inactive scroll bar color.
Bug: 20035978
Change-Id: Ia267ff8f171f7c4cde00593bd69cf69c1660c431
2015-08-24 15:24:17 -07:00
Winson Chung 79423d8227 am 944bfab0: Merge "Making the detached scrollbar catch up faster to the actual scroll position." into ub-launcher3-burnaby
* commit '944bfab018a2933a046a5661a244daf605d8d5c7':
  Making the detached scrollbar catch up faster to the actual scroll position.
2015-08-24 20:35:39 +00:00
Winson Chung 944bfab018 Merge "Making the detached scrollbar catch up faster to the actual scroll position." into ub-launcher3-burnaby 2015-08-24 20:30:09 +00:00
Winson 51a7d96544 Making the detached scrollbar catch up faster to the actual scroll position.
Bug: 20035978
Change-Id: I4f9780e1c5c1d10a7956ece729163544d79d72c3
2015-08-24 12:28:16 -07:00
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