Commit Graph

28 Commits

Author SHA1 Message Date
Winson Chung 66a90e701f Fixing issue with prediction bar apps erroneously being tapped.
- requestDisallowIntercept is not called unless the recycler view
  scrolls so when over scrolling, we still need to check the distance
  to ensure we stop long pressing when the touch moves outside the
  slop
- Ensure that we don't allow tapping the prediction bar icons under
  the search bar

Change-Id: I520c05fa77911340d4747bb469918812b192769e
2015-05-19 18:03:30 +00:00
Winson Chung f7e85f85d3 Merge "Fixing fast scroller invalidation on pre-L devices." into ub-launcher3-burnaby 2015-05-14 22:55:42 +00:00
Winson Chung 8c01f810eb Don't account for prediction bar height when there are no predictions.
Change-Id: Icd4d52908de8d2de9d144e8ea469adbbcfe7cad3
2015-05-14 22:50:36 +00:00
Winson Chung 515f2897e8 Fixing fast scroller invalidation on pre-L devices.
Change-Id: Ie776eff314db4b392ede70be1a332b0d80e0647c
2015-05-14 15:48:07 -07:00
Sunny Goyal 12fb2cc8ec Extending the shadow effect for search bar to lower devices
> Applying the background to the whole container instead of recycleview

Change-Id: Ifc90d05e0e96c41ba9aaf96b906211b101c2e197
2015-05-14 14:44:11 -07:00
Sunny Goyal fb445cd97d Merge "Various lint error fixes." into ub-launcher3-burnaby 2015-05-14 21:42:07 +00:00
Sunny Goyal 7066003b20 Various lint error fixes.
> Fixing some RTL errors by specifying both marginStart and marginLeft
> Moving all layout direction checks to Utilities
> Explicitely adding @TargetApi before every method

Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
2015-05-14 12:28:07 -07:00
Winson Chung 532e6ea2e6 Fixing crash when updating the scroll position state when there are no items.
Change-Id: I2bee8dedb2e546c956b7d9ff36187fb75183bd35
2015-05-14 12:24:25 -07:00
Winson Chung 02baa79e1f Fixing issue where the prediction bar could be misplaced after installing an app.
- When the adapter changes, we didn't update the scroll position that the prediction
  bar tracks, which caused it to be misplaced.  This forces a refresh of that scroll
  position to the current state whenever an app is removed or added.
2015-05-14 09:56:17 -07:00
Winson Chung 208ed75cfd Pulling out predictions into another row view.
Change-Id: Iba0d74457a1314cf0c00a88f9b07df049334e542
2015-05-13 09:10:31 -07:00
Winson Chung ed0c1cc739 Minor visual tweaks.
- Drawing full divider under predicted apps
- Enabling dynamic search bar elevation
- Increasing fast scroller pop-up size
- Insetting the padding to prevent the scroll bar from overlapping with app titles

Bug: 20299865

Change-Id: I48ffde43c2158c23b54cd43fede722da41ccc111
2015-05-13 01:53:23 +00:00
Winson Chung 4ac3006873 Initial changes to support predicted apps.
Change-Id: I80117d51074fe3dbdbb8d81cae886b1dffdfb86a
2015-05-11 21:59:39 +00:00
Winson Chung 99d96ba6c8 Fixing issue with fast scroller not showing sub-section headers.
- Removed some old logic to draw merged section headers

Change-Id: I2a7ff9948a3dce253d6bdcda89cc9f222faab309
2015-05-09 00:39:01 +00:00
Winson Chung 9480415d9b Make common base class to update container bounds and to handle scroll logic.
Bug: 20763871

Change-Id: I8c2f45cfb10964e4be7e9c07c89dd336585c9989
2015-05-08 21:41:40 +00:00
Winson Chung 0a71b9d83f Adding abstract methods for new RecyclerView lib.
Change-Id: I50c3dfaecd79a87340ed4eeaa3195a26311062e0
2015-05-07 11:14:42 -07:00
Winson Chung 83f59abc9c Explorations in dense grids for all apps.
- Adds sticky section headers
- Removing AppsListAdapter
- Adding search bar field
- Subtitle filtering

Bug: 20222023

Change-Id: I1eaef701b5d68f475615f09d86561eacc91c937f
2015-05-06 20:37:10 -07:00
Adam Cohen 04ac4faab0 Fix build in ub-launcher3-master
-> Stop depending on new RecyclerView methods

Change-Id: Ib2c58b24e2b796e6e7b3cd5e4bb927dc3f11faf2
2015-05-06 19:05:25 -07:00
Hyunyoung Song ebe1734a67 Make drag and drop also work when the widget tray is still in scroll mode.
b/20698514

Change-Id: Ic075f0016d5e00bbdec193bbcd2e311da1957388
2015-05-06 17:49:33 -07:00
Winson Chung ba17ad75f0 Add override method to fix building against master support lib. 2015-04-24 13:59:17 -07:00
Winson Chung 466663edee Accounting for recent changes in padding when detecting backgound taps to close AllApps.
- Also ensuring that we keep the search bar visible in all apps only if it is being overridden.

Change-Id: Iba980ecec255da80aff8ff57b42ad99d70a2122a
2015-04-17 12:51:27 -07:00
Winson Chung 0f78572066 Initial changes to support a fixed all-apps layout.
- Dynamically update padding and background depending on fixed bounds and searchbar
- Fixes issue with drag layer bg getting clobbered when rotating launcher
- Tapping outside the bounds of all apps should close all apps
- Fixing typo causing widgets to not show in sw720dp devices

Bug: 20127840

Change-Id: I29c3f905bdee940f938ffe054f58434887073092
2015-04-09 13:18:31 -07:00
Winson Chung 1c7c49331e Fixing issue with building velvet against lower support lib. 2015-04-07 13:45:29 -07:00
Winson Chung 9121fbffaf Small refactoring to apps list.
- Fixes issue with fading in app icons when items are added/removed
- Reduces number of expensive calls when drawing sections and the scrollbar
- Removes fake section AppInfos in the adapters
2015-04-06 15:12:49 -07:00
Winson Chung 24cf70092b Ensuring that we fast-scroll to the first section app.
Bug: 19992026

Change-Id: Ia015b870f80fa598fa68087f90236c59b0ad7e6d
2015-03-30 15:28:43 -07:00
Winson Chung 3d9490ab95 Removing more code with API 21 dependencies.
Change-Id: I16c914334ce0694b84626269ae4bb5e83082c739
2015-03-24 18:02:01 -07:00
Winson Chung f819dc2bc7 Making the scrollbar scrubbable.
- This change in behavior will remove the ability to scrub anywhere in the gutter to
  start fast-scrolling, but requires the user to touch near the scroll bar to start
  fast-scrolling.
- Also fixes issue with wonky scrollbar due to the fake section breaks

Change-Id: I34b08ac46ea93f7f4cad7ccde1048a388ee6a55d
2015-03-24 10:30:05 -07:00
Winson Chung aa2ab254ea Tweaking the apps list fast scroller.
- Making the view span the full width so that you can grab the scroller on the edge of the screen.
- Offsetting the fast-scoll popup so that you can see it as you scrub.

Change-Id: If1b1934bbeac0660d829cfc29c9e588df927c5e5
2015-03-16 15:20:39 -07:00
Winson Chung 93f98eaf18 Adding app grid layout with fastscroller.
- Adding filtering and using alphabetic index for app grouping.

Change-Id: I745b644fa8f90f5ff24a8642ac377ef1c65d8aff
2015-03-12 18:57:02 -07:00