Commit Graph

363 Commits

Author SHA1 Message Date
Winson Chung
88416027a3 Merge "Fixing crash while reordering pages in OverviewMode." into jb-ub-now-jolly-elf 2013-11-07 18:51:57 +00:00
Winson Chung
c82d2622bc Dyanmically lay out overview mode across all orientations and form factors.
Change-Id: I788bbf289717b30b19afc9ad9d611c85715bc623
2013-11-07 18:50:37 +00:00
Winson Chung
876a619b11 Fixing crash while reordering pages in OverviewMode.
Change-Id: I67dcd71a8f15fbc737880306254c766f4dbadc58
2013-11-07 18:50:29 +00:00
Adam Cohen
5c6474da60 Merge "Fix problem with where PagedView could get stuck (issue 11314889)" into jb-ub-now-jetsonic 2013-11-05 00:40:20 +00:00
Adam Cohen
cae7f573de Fix problem with where PagedView could get stuck (issue 11314889)
-> Also a small code cleanup where something was very weird

Change-Id: I3612e1de924a83d1a91b752f3b9e1e239a8db0ea
2013-11-04 14:46:43 -08:00
Adam Cohen
e4602aeb51 Reporting toIndex in scroll events (issue 11356512)
Change-Id: I96a97865970e0b9a6760246c4f830f3ceff53f09
2013-10-31 15:49:01 -07:00
Adam Cohen
3b185e2513 Fixing up PagedView to work in landscape mode
-> separated notion of page spacing and paged view padding
-> always position the current page within the rect
   created by pagedview's viewport + padding
-> space pages by a constant amount

Change-Id: I6bb35f72f04543f83b51ef981f8c9ded051623ac
2013-10-31 14:34:19 -07:00
Winson Chung
b88ae4158d Fixing crash with invalid current page.
Change-Id: I36e76176b6172a747a6526d96b82c9870b56067c
2013-10-29 17:21:56 -07:00
Adam Cohen
8bdbaab8e6 Fixing regression in paging
Change-Id: I9a76448aa09aea6a86a8a97860e48113c222a205
2013-10-29 15:25:12 -07:00
Adam Cohen
4fe4c93222 A bit of code cleanup (issue 11026590)
Change-Id: I8b2ef52f59abdbe3ca286eac6e639f19a11f7970
2013-10-28 16:21:21 -07:00
Adam Cohen
0cd0eba42e Finished getting rid of mPageSpacing
Change-Id: I5dc8255e6cc902430a91dc27ad1edec5d4308468
2013-10-28 14:22:41 -07:00
Michael Jurka
8fd3adc2a3 Refactor RTL wallpaper code to use getLayoutTransitionOffsetForPage
Bug: 11157913
2013-10-16 13:50:31 -07:00
Adam Cohen
21cd002fef Fix issue where custom content would show up on boot (issue 10713745)
Change-Id: I1c03784970fe1a88e2561f1c5367979cda825973
2013-10-10 12:51:44 -07:00
Adam Cohen
564a2e7116 Fix custom content state for scroll in RTL (issue 11068877)
Change-Id: I731c55e3e4e01ef42eba94c002d0fde296dd9540
2013-10-09 14:48:01 -07:00
Adam Cohen
fbdf42703c Fix inability to long press page indicators (issue 11136731)
Change-Id: I9073bc49ab1569a742b5c27870711ada1759ca36
2013-10-09 13:02:43 -07:00
Alan Viverette
d4a55216c1 Merge "Fix scrolling accessibility events sent from PagedView" into jb-ub-now-indigo-rose 2013-10-08 21:31:12 +00:00
Alan Viverette
254139a3c7 Fix scrolling accessibility events sent from PagedView
BUG: 11087905
Change-Id: Id4852dc04ee1aca25ccb0eba094b34c6b87d6d41
2013-10-08 13:13:46 -07:00
Vladimir Marko
2824b0750e Don't measure GONE views.
Don't measure GONE views in ShortcutAndWidgetContainer and
PagedView. They will not be processed in onLayout anyway.
This is pre-requisite for avoiding costly onMeasure in GEL.

Bug: 10734110
Change-Id: I4c1bef41d9185af5eda42b43371546c60f341f87
2013-10-07 15:06:20 +01:00
Adam Cohen
5380521880 First pass on accessibility
-> issue 10801717
-> issue 11012432
-> issue 11012764

Change-Id: I9a687a39a358441afd57c0c46b57399ecbf23c36
2013-10-04 16:31:09 -07:00
Michael Jurka
fe0ace3583 Fix RTL bugs with wallpaper parallax
Bug: 10901046

Change-Id: Id4277173b0c13d25eb0507bd6fa9fa1309946510
2013-10-03 16:19:06 -07:00
Adam Cohen
40d6264a8e Merge "Fix ArrayIndexOutOfBoundsException, (issue 11038649)" into jb-ub-now-indigo-rose 2013-10-02 16:47:23 +00:00
Adam Cohen
1f1f45d620 Fix ArrayIndexOutOfBoundsException, (issue 11038649)
Change-Id: Ib7aa55b104894f12175b382fdbcfb08d95408699
2013-10-02 09:44:13 -07:00
Adam Cohen
7a9e58aa17 Making sure overview mode can't get stuck (issue 11022017)
Change-Id: Iee2088f8781d375b0b83625023fb125a869a2868
2013-10-01 18:05:53 -07:00
Adam Cohen
97d5311e2a Ensuring that snapToPage is completely aborted / cleaned up upon setCurrentPage (issue 11003904)
Change-Id: Iba851c297ab9406b094c8f0cbf6e39675d0ffa39
2013-10-01 11:19:44 -07:00
Adam Cohen
0655904abd Fixing regression in reordering (issue 10994971)
Change-Id: I2be98fc892c1a4392c4a5e035dd4cc1fa6fab0a9
2013-09-29 18:31:11 -07:00
Adam Cohen
2bf63d5205 Fixing issue where you couldn't drag an item multiple pages (issue 10754544)
-> This was caused by a strange race condition. The page snap time was equal to
   the delay to recheck whether to snap (in DragController). This meant that
   scrollRight()/Left() would get called, and the scroller would be finished
   however, the final computeScrollHelper() hadn't been called, so the mCurrentPage
   hadn't yet been incremented.
-> Fixed the underlying race condition.
-> Added suitable gap (150 ms) between the two delays.

Change-Id: If700eb9e14d77a174e4395ca6933119bdb0da768
2013-09-29 18:13:25 -07:00
Winson Chung
780fe59a7a Integrating some aosp fixes, ensuring that we update the install queue before returning to Launcher.
- Fixing stuck page in All Apps (Bug 9347818)
- Fixing shortcuts to uninstalled apps from being installed (Bug 10726510)
- Consolidating vibration feedback
- Ensuring that we trim names during comparison in AllApps list

Change-Id: Ieaae4d85851ce771283b4684a8a60306da28cb3b
2013-09-26 16:17:07 -07:00
Adam Cohen
93c9756e7a Fixing some touch / interaction problems
-> Weird reorder/scroll mode hybrid (issue 10550801)
-> Entering overview mode when we shouldn't (issue 10855389)

Change-Id: Ic936ead8deb3a5d4e00f265d09329528a1517063
2013-09-26 13:53:23 -07:00
Adam Cohen
6a678da1d8 Fix typo
Change-Id: I5eddb365da8d974bb96115b7bd3ad9527ec0d39d
2013-09-24 10:58:07 -07:00
Adam Cohen
af9b0e51aa Getting RTL up to a reasonable state in Launcher3
-> Fixing random page jumps from one edge of page view to another (issue 10846070)
-> Fixing screen -1 overlap (issue 10861684)
-> Fixing callbacks / transition state related to Custom Content in RTL (issue 10858355)
-> Overview mode now works in RTL
-> Making visible page range code RTL-LTR independent

Change-Id: I4dcc6127a02bf6669f5a1e8e1b62b340b60a5edc
2013-09-24 10:43:42 -07:00
Adam Cohen
410f3cdfb4 Getting the Overview Mode to look up to spec
-> New assets, text, fonts
-> New spacing of pages (translated upwards)
-> Updated outline color to white (the ones we're drawing)

Change-Id: Ie664ac0598ae18b86ae6d54d1d6b497c13d2ee95
2013-09-22 17:41:40 -07:00
Winson Chung
7819a56217 Tweaking page indicators to support add page icon, remembering widget picker page (Bug 10787439)
Change-Id: Iab0b5676aa9c34a610b4b968940abc81c913c234
2013-09-19 15:56:35 -07:00
Adam Cohen
dbdff6bc7b Handful of small changes / bug fixes
-> Fixed fade in of overview panel on first animation
-> Fixed long press issue in page indicator region
-> Added background scrim to overview mode
-> Fading search bar in overview mode / disabling clickability
   of search bar and mic

Change-Id: Ic9bf84f7cb9ff2991c5b4e93273d9e3f65556e5c
2013-09-18 19:10:53 -07:00
Adam Cohen
1697b79a86 Fixing up click / long click to enter / exit overview mode
Change-Id: I1ec7ab7f3e5c67add9ae64901e0ea377e265ed84
2013-09-17 19:09:54 -07:00
Adam Cohen
f343499f9b Making sure CustomContent is never visible during overview / springloaded
Change-Id: I187f7fcfbd4e24e20959c9e0cf5fd5400d006f45
2013-09-16 16:53:18 -07:00
Adam Cohen
5084cbab0e Shrink-wrapping model to spec (issue 10397399)
Change-Id: I87e32e8bd93f3b0468bc840200faed8270922a03
2013-09-13 16:02:44 -07:00
John Spurlock
77e1f47520 Add system window inset support to DragLayer and children.
Instead of fitting system windows as before, DragLayer now
lays out under the system windows.

DragLayer will simply add the system window insets to each
child's layout margins by default.  e.g. for Hotseat, Page
Indicators, QSB, Search Overlay.

Children that want to use the full viewport can declare so
by implementing a new Insettable interface.  System window
insets will be passed to Insettable#setInsets(insets) and
the child can do what it wants with them.

Currently, two of DragLayer's children implement Insettable:

1) Workspace (for the -1 screen).
   Full screen pages are given the entire viewport, paged
   view offsets modified to end up in the right place now
   that the viewport is larger (the full screen height).
   Non-full screen pages like the normal icon pages simply
   apply the insets to end up in the same place they did
   before.
   NowClientCardsView uses the full viewport, applying the
   insets as padding. Will want to better take advantage
   of this new real estate in a future CL.

2) All Apps (AppsCustomizeTabHost).
   Applies the insets as layout margin one level down, so that
   the bar area is opaque during the transition, but visually
   the content lands in the same place.

(Also add db_files to .gitignore to ignore the output of the
db tool)

Bug:10687177
Bug:10652189
Change-Id: I80b25d63884d244fcf704b24dad9497ee0d8b453
2013-09-11 16:29:34 -04:00
Winson Chung
c58497ee61 Initial changes to restore AllApps.
- Removes unused all apps code due to dynamic grid/spacing
- Attempts to use CellLayout instead of PagedViewCellLayout

Change-Id: I3c49bca9fc35dfeaf250591fd63bc7f36119968f
2013-09-05 12:14:28 -07:00
Adam Cohen
2702ea0060 Removing custom content padding
-> Cleaned up extraneous imports

Change-Id: I3f9258a893e85f9f6a7cc1eab03d4c5a3dfba786
2013-08-15 16:18:09 -07:00
Adam Cohen
f358a4bbd6 Adding overview mode for reordering, widget adding and wallpaper switching
Change-Id: I082ba0b90ca4b3fbba32e8dfdec8ba79486d841c
2013-08-13 18:53:36 -07:00
Winson Chung
63d7870ea2 Merge "Verifying that new applications are added and fixing issue with new items getting wrong ids." into jb-ub-gel-agar 2013-07-31 17:34:54 +00:00
Winson Chung
df11a77f29 Merge "Adding support for custom page indicator markers." into jb-ub-gel-agar 2013-07-31 17:30:55 +00:00
Winson Chung
82dfe58514 Adding support for custom page indicator markers.
Change-Id: I057b0cccc4194157d92ebb123af2afaf94fb5415
2013-07-26 15:07:49 -07:00
Winson Chung
c763c4e4d2 Verifying that new applications are added and fixing issue with new items getting wrong ids.
- Fixing issue where the LauncherModel would be out of sync on first migration, and subsequent crashes

Change-Id: I6f58b09b615b28958c7f941e58ff9ae0ee3ba939
2013-07-25 14:50:49 -07:00
Adam Cohen
6ad0e7dcae Fix overhang of custom content area into first screen of launcher
Change-Id: I2e8cbedb644c8399be269616e617851136489da5
2013-07-24 14:25:58 -07:00
Winson Chung
8c87cd83e0 Fixing issue where the page was reset to 0 on rotation.
- We needed to defer setting the restore page until the first onLayout

Change-Id: I6b7b4c0a6401ab6ab2caaea0dac0a7261ff831e8
2013-07-24 10:57:22 -07:00
Winson Chung
9c0565fe93 Fixing regression causing PagedView not to load subsequent widget pages.
Change-Id: I1da1bd0ec5e4b964dd43cdba98d36ef30655a4a3
2013-07-22 13:28:59 -07:00
Winson Chung
c9ca298098 Fixing performance issues with drawing all visible pages.
Change-Id: I17736c1e6afa1f4a961c136fe82bf1d632cbe6cc
2013-07-19 14:01:19 -07:00
Adam Cohen
edb4076e59 More PagedView cleanup
-> Custom content screen is now full screen (with some padding inserted for now)
-> Hiding the hotseat and page indicators when scrolling to the
   custom content screen
-> Adding background scrim fade in to custom content space.

Change-Id: I28921318a38af46f11fa836020a590c70d5d96ed
2013-07-18 16:47:23 -07:00
Adam Cohen
f698c6ebda Simplifying some more stuff related to PagedView
Change-Id: I25d41697f4514825664a05e78df1e24fc81c492a
2013-07-17 18:46:30 -07:00