Commit Graph

15753 Commits

Author SHA1 Message Date
Tony Wickham
3a6746ac04 Animate TaskView as you swipe down on it to launch
Bug: 73835352
Change-Id: Ia255a7af8fb6cd972f99de6390e097afc29c1b90
2018-03-29 17:46:47 -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
Winson Chung
873cd43326 Merge changes I838ef4de,I22e2948a into ub-launcher3-master
* changes:
  Use onQuickStep call from SysUI
  Workaround for ensuring dummy task view has valid task
2018-03-28 23:42:37 +00:00
Winson Chung
19adf653bd Use onQuickStep call from SysUI
Change-Id: I838ef4de2d86abde1848efd757a523c088016756
2018-03-28 16:27:08 -07:00
TreeHugger Robot
457dedd1bf Merge "Starting wallpaper picker in a separate task" into ub-launcher3-master 2018-03-28 22:07:17 +00:00
Tracy Zhou
b1a7f2829e Merge "Move default pip position to right above the shelf (Pt. Launcher)" into ub-launcher3-master 2018-03-28 21:54:57 +00:00
Sunny Goyal
112c927f8a Starting wallpaper picker in a separate task
Bug: 74500048
Change-Id: Icb315f3fd3aca800633be5105bf89c6e354425b9
2018-03-28 14:42:30 -07:00
Tracy Zhou
a706f00d78 Move default pip position to right above the shelf (Pt. Launcher)
SysUI change: ag/3721784, ag/3793664

- Track LauncherState and launcher activity state through callbacks.
- Devise logic to send shelf visibility and height signal to SysUI based
on LauncherState and Launcher activity state.

Bug: 73961893
Test:
- By default, pip shows up right above the shelf.
- Transitioning to all apps moves the pip down as the shelf becomes
invisible.
- Going to any specific app moves pip down. Hitting home moves pip
right above the shelf again.
- Dismissing IME should push PIP down but above the shelf on home
screen, bottom if not.

Change-Id: I1ab6ceb8007a5a7b5d932a456efa0a07f586ea4c
2018-03-28 14:40:49 -07:00
Jonathan Miranda
1f447d285a Merge "Pass intent extras as string arraylist." into ub-launcher3-master 2018-03-28 21:31:34 +00:00
TreeHugger Robot
599b494010 Merge "Don't wait until layout to calculate the scroll range" into ub-launcher3-master 2018-03-28 21:29:07 +00:00
Sunny Goyal
8c1a935a45 Don't wait until layout to calculate the scroll range
State UI is based on scroll range, which is applied on insets change.
So the scroll range should be updated as part of insets change, for the State
UI to be applied properly

Bug: 77220795
Change-Id: I839f89e4887d9731b1483135724227c4245a00a9
2018-03-28 14:20:04 -07:00
Jon Miranda
75161b9750 Pass intent extras as string arraylist.
Bug: 74355094
Change-Id: I697d837e48d7de4a490d2ad74a9c1ec7987d0574
2018-03-28 13:40:17 -07:00
Jon Miranda
591e360803 Match folder icon size to normalized circle icon size.
Simplifies the logic for calculating the folder icon size,
and ensures consistent sizing in different launcher viewing modes.

Bug: 74078689
Change-Id: I5cf4474fd81e55aa50b056418c95533801f07d48
2018-03-28 12:46:48 -07:00
TreeHugger Robot
71d45a0ab0 Merge "Removing accessibility workaround for changing View visibility" into ub-launcher3-master 2018-03-28 17:42:07 +00:00
Sunny Goyal
18d718492a Removing accessibility workaround for changing View visibility
Original change-id: I9a687a39a358441afd57c0c46b57399ecbf23c36

Bug: 76418647
Change-Id: I0800bd4f521e052f0a1229fe6b7ceafd1b0429ae
2018-03-28 10:32:19 -07:00
Sunny Goyal
fbcd52f407 Using the application classloader for unmarsheling internal classes
Android default classloader may not find the custom classes defined in
the launcher package, causing ClassNotFoundException

Bug: 74234914
Change-Id: I47cc1034c699a1466da51137c4efd7a5c12af2fc
2018-03-27 20:43:02 -07:00
TreeHugger Robot
9025aa5317 Merge "Don't add task overlay when thumbnail is rotated" into ub-launcher3-master 2018-03-28 00:14:02 +00:00
Tony Wickham
e7a49dc915 Don't add task overlay when thumbnail is rotated
Change-Id: Ie4088c8c1a1c22a30caddc5bfb6b76e6a42ef088
2018-03-27 17:05:10 -07:00
Sunny Goyal
5b70f51750 Fixing wrong visibility being set for RecentsView
Change-Id: I03890eabe80dd9339a3de9449772ab7fb36a6db1
2018-03-27 15:50:20 -07:00
Tony Wickham
4639a75506 Merge "Fix divide by 0" into ub-launcher3-master 2018-03-27 20:52:30 +00:00
Tony Wickham
85fd66800d Fix divide by 0
Bug: 76392987
Change-Id: Ib55b3e47b296f4aaa690f7af83c5d92b242ed029
2018-03-27 13:31:39 -07:00
TreeHugger Robot
7d28623f3a Merge "Revert "Using dimension instead of relyong on relativeLayout for view positions"" into ub-launcher3-master 2018-03-27 20:25:11 +00:00
Sunny Goyal
a750730d90 Revert "Using dimension instead of relyong on relativeLayout for view positions"
This reverts commit 9623ed1894.

Reason for revert: b/76398583

Change-Id: I85f842d2c1511fe7ac374756e83641b59cbdd56d
2018-03-27 20:09:50 +00:00
Jonathan Miranda
03ebe0cd00 Merge "Send directed broadcast to package installers that have active sessions." into ub-launcher3-master 2018-03-27 19:53:07 +00:00
Jon Miranda
5ab0d896c6 Send directed broadcast to package installers that have active sessions.
For each installer, we send a broadcast that includes package names of items that:
* Are being installed by that installer
* Are on the first screen
* Have an active install session

The packages are seperated by:
* Folder items
* Workspace items
* Hotseat items
* Widgets

Bug: 74355094
Change-Id: I573ed6b3b84314ef244486fcf8354bebdff8bbdf
2018-03-27 12:32:49 -07:00
Jon Miranda
314ab5d6b5 Raise char limit from 100 to 200 on accessibility string.
Bug: 76444955
Change-Id: I44a168bd9705ca8ab37f98a41aae0dceb5d9536a
2018-03-27 11:48:37 -07:00
Winson Chung
ef77fd0f40 Workaround for ensuring dummy task view has valid task
- Always assign the first task the running task id so that we can still
  identify it if applyLoadPlan() is not yet called back from loading tasks.

Bug: 76100710
Change-Id: I22e2948a67f532b60415a248d6121febba29b3f6
2018-03-27 10:31:29 -07:00
TreeHugger Robot
932d3b02de Merge changes I438e45d8,I1330cec3 into ub-launcher3-master
* changes:
  Show overview tiles in the orientation screenshot was taken
  Prevent edge gradient for screenshots in correct orientation
2018-03-27 17:00:12 +00:00
Tony Wickham
20bfde3600 Show overview tiles in the orientation screenshot was taken
If the orientation of the screenshot doesn't match the thumbnail view,
we rotate the screenshot 90 degrees. We don't know whether a landscape
screenshot was seascape, so we just assume it's not (i.e. landscape
screenshots always rotate +90 degrees when shown in portrait).

Portrait screenshots rotate so that the bottom aligns with the nav bar,
e.g. rotate +90 in seascape and -90 in landscape

Currently guarded by the flag OVERVIEW_USE_SCREENSHOT_ORIENTATION.

Bug: 74552612
Change-Id: I438e45d89b54ffe41950c8bb9abdbb9a1c33aa40
2018-03-27 09:48:37 -07:00
Sunny Goyal
0e4f33b3a1 Merge "Do not clear grid accupancy if nothing changes" into ub-launcher3-master 2018-03-27 16:41:49 +00:00
Sunny Goyal
aeead95d8e Merge "Making read permission for android content provider as systemSignature to prevent unwanted access to user data" into ub-launcher3-master 2018-03-27 16:36:08 +00:00
Tony Wickham
61857f3f39 Prevent edge gradient for screenshots in correct orientation
- Due to rounding issues, the width could be a pixel too small, causing
  a gradient on the right edge
- On tall devices, the height ratio of the task thumbnail might be
  larger than the width ratio, causing the screenshot to be too short
  upon swiping up, and thus a gradient on the bottom edge

Bug: 73540853
Change-Id: I1330cec3d2ff8c98eb1b354f0e7f40c6ea49ad7c
2018-03-26 17:26:40 -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
Sunny Goyal
11e9649894 Do not clear grid accupancy if nothing changes
Hotseat is calling setGridSize on every layout which was clearing gridOccupancy, marking the cells as empty

Bug: 73867732
Change-Id: Ie07f5786f2e5bfe2340fd0b8723964f651c929d4
2018-03-26 16:19:41 -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
TreeHugger Robot
658edc6e56 Merge "Making task view accessibility-stoppable" into ub-launcher3-master 2018-03-26 19:29:06 +00:00
TreeHugger Robot
4e57d6cdad Merge "Applying the alpha to individual tasks instead of the view" into ub-launcher3-master 2018-03-26 19:22:30 +00:00
TreeHugger Robot
e006cc902b Merge "Dismissing tasks via keyboard" into ub-launcher3-master 2018-03-26 19:21:24 +00:00
Vadim Tryshev
c911c3da72 Dismissing tasks via keyboard
Bug: 73090995
Test: Press all Del buttons on keyboard, backspace, while in or not in
Alt-Tab.

Change-Id: I22f99c46adbc465373989c58ed831e32fc8e2ba5
2018-03-26 12:13:19 -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
4ba5e6046f Making task view accessibility-stoppable
This is done by associating an accessibility description with it.

Bug: 72409756
Test: Touch-explore a task in Overview
Change-Id: I988cdc167599406a36c0a3a9bbd0a2ac766ec333
2018-03-26 12:06:24 -07:00
Tony Wickham
864ae5a2b3 Merge "Add drag indicator to hotseat" into ub-launcher3-master 2018-03-26 18:11:49 +00:00
TreeHugger Robot
f757f9cb17 Merge "Use the correct haptics when changing pages" into ub-launcher3-master 2018-03-26 17:43:16 +00:00
TreeHugger Robot
da2e584a90 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-03-24 01:40:02 +00:00
Bill Yi
0a92d818d6 Import translations. DO NOT MERGE
Change-Id: Id846f816db89d0e1920f0b08e24f0c1f69d65210
Auto-generated-cl: translation import
2018-03-23 18:30:15 -07:00
Tony Wickham
7c3dd1f14e Add drag indicator to hotseat
Change-Id: Iad5b08ad290f07c6cdd3c9091e160b5af859859e
2018-03-23 17:34:04 -07:00
Tony Wickham
a8c647ffa2 Merge "Fix back button not showing in all floating views" into ub-launcher3-master 2018-03-23 23:49:46 +00:00
Tony Wickham
b65040ac7b Fix back button not showing in all floating views
We only show the back button when adding the floating view to the
drag layer if it is already "open". A couple of floating items
(folder and options popup) added first then set mIsOpen, causing
the back button to not appear. (We have to check that it is open,
and not just on the drag layer, because we want to get rid of the
back button when changing to some states such as spring-loaded. If
we only checked if the view was present, it wouldn't hide if one of
the floating views such as folder or shortcuts was animated closed.)

Bug: 76169527
Change-Id: I0dff6d2e3424eab72d47dccc42cc703a0fb0141b
2018-03-23 16:22:06 -07:00
Matthew Ng
4ca349c1a2 Use the correct haptics when changing pages
Uses virtual key instead of keyboard tap.

Test: scrub between pages
Bug: 70180755
Change-Id: I72bde319610dd4acf59e5f4eb9f462c106b9a911
2018-03-23 15:35:57 -07:00