Commit Graph

77 Commits

Author SHA1 Message Date
Vadim Tryshev
4e3e54a45a Accessibility of clear-all button
Making it visible to accessibility even when it’s completely hidden
behind a task. I had to mark it visible as a view. Now it’s invisible
only when there are no tasks in RecensView, to hide it from
accessibility.

Focusing on the button completely reveals it.

Bug: 72222505
Test: Manual
Change-Id: Ia31a1136e07faed93b4a44d5be69483d3b88364d
2018-05-01 11:20:14 -07:00
android-build-team Robot
59d6f26cd4 Merge "Adding a round rect background for the self in Overview" into ub-launcher3-edmonton 2018-04-30 22:51:59 +00:00
Sunny Goyal
36d090df67 Adding a round rect background for the self in Overview
Bug: 78771910
Change-Id: I71460a284ed185e82d66fe65104402fb99d6b312
2018-04-30 15:37:39 -07:00
Bill Yi
c2032ee2f4 Import translations. DO NOT MERGE
Change-Id: I229a0d80355868f6197033b792dc1796973adebe
Auto-generated-cl: translation import
2018-04-30 15:28:15 -07:00
Bill Yi
43b5cfe76b Import translations. DO NOT MERGE
Change-Id: I6a00a8461cd13c680453375914405c7f93806258
Auto-generated-cl: translation import
2018-04-30 10:53:33 -07:00
Vadim Tryshev
cc0c98ad94 Enable Clear-all button by default
Making it work with all 4 combinations of RTL and flip-recents.

Bug: 72222505
Test: Manual
Change-Id: Ifb2428e006674abfe9a2609fd3d8f3f648eff0b8
2018-04-27 13:32:28 -07:00
Vadim Tryshev
77cb385d47 Improving highlight for Clear-all button.
Better shape + now has hover state.

Bug: 72222505
Test: Manual
Change-Id: I24ba55c760b15d71406a35ea5f7bf54f505741d6
2018-04-25 13:20:37 -07:00
TreeHugger Robot
229fc93949 Merge "Import translations. DO NOT MERGE" into ub-launcher3-edmonton 2018-04-21 04:06:36 +00:00
TreeHugger Robot
02632bcc1a Merge "Not ignoring insets for Clear-all button" into ub-launcher3-edmonton 2018-04-20 19:45:24 +00:00
Bill Yi
dcbd321095 Import translations. DO NOT MERGE
Change-Id: Iaf7e186dfb94e7ff47c048c9b8d4e0e1fb829b26
Auto-generated-cl: translation import
2018-04-20 12:00:33 -07:00
TreeHugger Robot
f589eebbec Merge "Bringing back auto-rotate settings" into ub-launcher3-edmonton 2018-04-20 16:45:18 +00:00
Vadim Tryshev
4473658c2f Not ignoring insets for Clear-all button
When in portrait mode with nav bar on the right , we need the right
inset to be applied to the layout.

Bug: 72222505
Test: Manual
Change-Id: I06ac864097fb3cfb833de3e40921be4e19eb5f54
2018-04-19 18:43:04 -07:00
Sunny Goyal
40253329c5 Bringing back auto-rotate settings
Bug: 77654352
Change-Id: I0910fc8afe2fb7e125d57912abc35bbbd5df9d74
2018-04-19 09:27:56 -07:00
Vadim Tryshev
9a68a9ea62 Small tweaks to positioning Clear-all button
Bug: 72222505
Test: Manual
Change-Id: I920a1d712e4f72ed66cf0c31cb77cf949339b2c6
2018-04-18 18:59:56 -07:00
Vadim Tryshev
6d2321cb7d Introducing Clear-all button on Overview
It’s an initial implementation, i.e. no fancy effects.
It shares a parent (LauncherRecentsViewContainer) with RecentsView.
The button is centered in clear_all_button_container, which gets
positioned programmatically to the right of the last task. (RTL polish
will be a separate CL as well).

Bug: 72222505
Change-Id: Ia912908a93a30c2f51450ccf0f97c7495e7916d5
Test: Manual
2018-04-18 11:33:21 -07:00
Tracy Zhou
fd21de4489 Move QuickStep onboarding strings from Launcher to SysUI (Pt. Launcher)
Bug: 70180942
Test: N/A
Change-Id: I05e6ce27630d478a40a52bf59a9dfd25881213be
2018-04-12 11:08:28 -07:00
Bill Yi
c8f3ee9be1 Import translations. DO NOT MERGE
Change-Id: I19182d20a9bfe17b92ee7e10dd17d6dc2e5ba118
Auto-generated-cl: translation import
2018-04-11 14:39:49 -07:00
Sunny Goyal
2d6208065a Adding some utility callbacks in TaskOverlayManager
Change-Id: Id2ef8f1c2bf4c6eab4170c32cfafad0b448e63db
2018-04-10 13:32:56 -07:00
TreeHugger Robot
a4e8763d11 Merge "Updating the card size logic" into ub-launcher3-master 2018-04-09 17:20:31 +00:00
Sunny Goyal
926ba83726 Elevate GPU priority of Launcher3Quickstep
Bug: 75985430
Change-Id: I4ac70c76db98b4ab666b0559f3185392142be045
2018-04-09 09:23:28 -07:00
Sunny Goyal
d792a77234 Updating the card size logic
In full screen always follow the device aspect ratio
In multi-window, follow the 1:1 split window size
Rotate the screen shot only in full-screen mode

Bug: 70289009
Change-Id: Id5095565634d4d7920fefa929b28276db80bda5f
2018-04-06 11:29:32 -07:00
Bill Yi
466d8c1100 Import translations. DO NOT MERGE
Change-Id: I541d5ba543c96278c8fa956faeef4ffd13b2953b
Auto-generated-cl: translation import
2018-04-04 15:22:33 -07:00
TreeHugger Robot
415a1402d5 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-04-01 10:14:21 +00:00
Bill Yi
ea4eceeba7 Import translations. DO NOT MERGE
Change-Id: I9661c8c23d5c3f6390283edb3fba1eab99e5d997
Auto-generated-cl: translation import
2018-04-01 02:13:44 -07:00
Vadim Tryshev
ac2042a40a Accessibility options for a task
The list is:
Close [task]
<items from the task’s popup menu>

Also making a current task in carousel get accessibility focus. This
prevents losing focus after closing a task, and makes sense generally.

Bug: 72409756
Test: Manual
Change-Id: I2cfdfd4693a255f63417d922cb6aa4841db1d3c3
2018-03-30 18:19:03 -07:00
Sunny Goyal
ab83773e21 Updating fallback activity
> Wallpaper based theme support
> Light/dark system UI
> Swipe gestures to start and dismiss a task
> Fixing insets and task preview size

Bug: 75979063
Change-Id: Id402e6ac50551a7c0849742e3a0e77df3ead5aa2
2018-03-30 09:45:59 -07:00
Tony Wickham
b80cb40ee1 Merge changes Ia255a7af,I74e74e54 into ub-launcher3-master
* changes:
  Animate TaskView as you swipe down on it to launch
  Calculate task view animation instead of using dimens
2018-03-30 01:03:50 +00:00
Bill Yi
f94c0099ee Import translations. DO NOT MERGE
Change-Id: Icf33460413c168778937af5952ca08fd02f3bdca
Auto-generated-cl: translation import
2018-03-29 10:41:30 -07:00
Tony Wickham
7a802eb6db Calculate task view animation instead of using dimens
Now we compute the precise scales and offsets to synchronize adjacent
pages with the launched page. Also adjusted all apps progress so that
the predictions/hotseat go offscreen directly based on the opening
window.

Change-Id: I74e74e541c60b3b116e2b5713522bd4a0f5928a7
2018-03-29 09:32:18 -07:00
Sunny Goyal
00c9c9a6fc Adding an empty message in RecentsView
Moving the content instead of translating the view. This ensures
that the empty message fades in place while the other content come-in
from the side.

Change-Id: I081d2e21206de24ad530814cb6a8ca7c3e293724
2018-03-26 17:24:12 -07:00
TreeHugger Robot
3d58de67a8 Merge "Adding a custom view for DragHandle" into ub-launcher3-master 2018-03-26 23:03:53 +00:00
Sunny Goyal
81b4c7bb3c Adding a custom view for DragHandle
> Separating page indicator and drag handle
> Page indicator always draws irrespactive of oriantation
> Drag handle is responsible for accessibility interactions
> Adding assissibility actions for DragHandle

Bug: 72500733
Change-Id: I9030337456964af1bdf77f1c01956452321f9229
2018-03-26 15:52:03 -07:00
Sunny Goyal
a9f554681d Applying the alpha to individual tasks instead of the view
> Removing hotseat from overview in transposed layout
> Removing face scrim from recents view in transposed layout
> Removing focued background from pagesView as individual poges have focus states

Change-Id: I620527241bf7240009c4187f53f5a5cff0c3e2b1
2018-03-26 12:11:00 -07:00
Vadim Tryshev
332e07207b Solving losing [Alt+]Tab events
When you are in touch mode with Overview open, and press Tab or Alt+Tab,
it will be lost. This is because the upon pressing this key(s), app
gets switched to the keyboard mode. When this happens, the first
navigation ket gets ignored, and instead of navigation, we get focus
and highlight on the first focusable element.

The concept of the touch vs keyboard mode doesn’t fit well Overview
mode, hence the solution is to not let the recents activity to leave the
touch mode. We always keep RecentsView focused when visible. Android
honors the existing focus, and doesn't’ attempt transitioning from the
touch mode.

Bug: 73090995
Test: Manually fetch Overview, press Tab or Alt-Tab. Drag a task with
touch a bit, then press [Alt+] Tab. Repeat. Do the same with Overview
opened via Alt-Tab. Also: before, after and between, also check that Tab
keeps working on the workspace.

Change-Id: If6890ee80e08b03580051cceeac1be9a89ad3656
2018-03-19 16:40:00 -07:00
Sunny Goyal
0b0847b272 Fixing taskMenu and taskView clicks in fallback activity
> Extracting common methods from Launcher & DragLauncher to base classes
> Remoting some dependencies on Launcher and using the base class instead

Change-Id: I121cacf8a14190b4703cda60bdeb4f79eee69ded
2018-03-15 17:29:43 -07:00
Tony Wickham
39b5534b96 Merge "Small updates for recents launch animation" into ub-launcher3-master 2018-03-15 23:54:56 +00:00
TreeHugger Robot
bac14afd1e Merge "Adding support for prefenrece search in QuickStep" into ub-launcher3-master 2018-03-14 23:10:42 +00:00
Sunny Goyal
f633ef5f43 Adding fallback recents activity
> Refactoring RecentsView to a common base class
> Moving some dependency form Launcher to BaseActivity
> Using the Recents view in RecentsActivity

Change-Id: Ie0e6741d356291e77420798c140c999121de3a0d
2018-03-13 17:22:52 -07:00
Sunny Goyal
7c7be8c20a Simplifying options popup and overview handling
> Removing support for page drag-n-drop from pagedView
> Removing Overview UI from Launcher3 without quickstep and using options popup instead
> Removing touch handlers from CellLayouts and showing options popup based on workspace long press
> Excluding touch outside inset when showing the popup

Bug: 74136505
Change-Id: I34c2a7ff58452db26f5d1a85d554be40fc75f2b8
2018-03-13 12:57:32 -07:00
Tony
b8f7d9a3ad Small updates for recents launch animation
- Increase translation x of adjacnet tasks, in order to maintain
  gaps between pages
- Fix parallax when launching side task (used to be based on launched
  task's translation, but now that is 0 since there's no curve)

Change-Id: Iace47761a6e0a69982cf2eac34436b7164e60792
2018-03-12 18:07:09 +00:00
TreeHugger Robot
4c8fbb9c95 Merge "Adding implementation of InstantAppResolver for quickstep" into ub-launcher3-master 2018-03-12 18:06:56 +00:00
Tony
404e625516 Remove workspace card
Swiping up for recents scales down workspace and hides it, similar to the transition
to all apps. Simultaneously, recents slides in from the side.

Also removed the setting for swiping to the first task, as it is required now.

Change-Id: Id0845db6650a37917a4faa9c8a434a2270913904
2018-03-12 14:05:18 +00:00
Tony
5cd8ab938c Cleanup code relating to recents carousel
We can delete a lot of code now  that recents isn't curved and
workspace doesn't offset.

Bug: 70179222
Change-Id: I01f7e3c313cdc370a8db5251a5d9fb406c1eb76c
2018-03-09 20:58:39 +00:00
Tony Wickham
59a38e6788 Flatten recents (remove curve effect)
- Workspace card scales down to be same width as other cards, which
  leaves a gap at the bottom due to difference in aspect ratio. This
  can be changed in the future, but deferring for now.
- Workspace card no longer offsets when scrolling.
- Cards no longer scale and translate, but still have a bit of dimming
  when on the edges, so the center card has the most focus.

A lot of code can be cleaned up. Added TODO's now, will cleanup in
followup CL

Bug: 70179222
Change-Id: I2332aab10e2549a455f773e053ed8b48677c3110
2018-03-09 20:58:39 +00:00
Sunny Goyal
3fbca15555 Adding support for prefenrece search in QuickStep
Bug: 62292864
Change-Id: Ic112626ca9c5942c91ced4ab42e64cbce4657701
2018-03-09 12:57:11 -08:00
Sunny Goyal
61e084601e Adding implementation of InstantAppResolver for quickstep
> Badging instant apps properly in recents
> Routing drawable creation using Drawable factory

Bug: 31282621
Change-Id: Ice1cdd3e9b821bebdebebbdc5cba4a907ffc21f8
2018-03-07 15:36:10 -08:00
Sunny Goyal
6639a5dfe0 Updating the scrim and landscpae ui
> Instead of views, using a custom class to draw the color scrims
> All-apps has full screen UI
> Quickstep does not have search box in landscape

Bug: 73085356
Change-Id: I360a78a2ade0134daad29fe712796cd39a381fbb
2018-03-01 11:23:46 -08:00
Winson Chung
62a70be27a Enable trim memory callbacks to the loader, background task preloading
- Also enable the high-res thumbnail loader

Bug: 73651529

Change-Id: Ic23997f10289ea10cb1f41104e07029c9102c
Signed-off-by: Winson Chung <winsonc@google.com>
2018-02-28 12:55:19 -08:00
Tony Wickham
005df0ba69 Animate launcher when launching recent tasks
- Scale up adjacent recent tasks and translate away from center
  - Workspace card instead recenters in the screen
- Translate hotseat offscreen

Clicking on one of the adjacent tasks will scale it up to the
center of the screen while the center and other adjacent task
parallax to the right beneath it.

Change-Id: If96eec987c100458b8444a6cd698ec7bf6e6ba6b
2018-02-26 14:05:59 -08:00
Bill Yi
bdb0348992 Import translations. DO NOT MERGE
Change-Id: Idd59dca233e29983e7b7145a2595e7880b12f878
Auto-generated-cl: translation import
2018-02-17 03:04:05 -08:00