Commit Graph

7726 Commits

Author SHA1 Message Date
TreeHugger Robot
20bd0b3fcb Merge "Adding WEB_APP item type for logging." into ub-launcher3-master 2018-04-03 19:35:45 +00:00
Mario Bertschler
d2e3c5de56 Adding WEB_APP item type for logging.
Set in LoggerUtils.newItemTarget if instant app

Bug:67049361
Change-Id: I8e99e5c60bf1a2083f898e8978d403138f803276
2018-04-03 21:18:38 +02:00
TreeHugger Robot
b518981124 Merge "Fix bug where drag handle translation was not set to 0 on device profile change." into ub-launcher3-master 2018-04-03 19:09:42 +00:00
Jon Miranda
2b67bacadc Fix bug where drag handle translation was not set to 0 on device profile change.
Bug: 77523779
Change-Id: Idec97c34999e05adfac7e9931ab9596a8aae67ae
2018-04-03 11:54:49 -07:00
Tony Wickham
1c6f12d119 Swipe down on hotseat to launch recent task
If you're ever in overview and swipe down on the hotseat, it will launch
the focused task *unless* you entered overview from the workspace and
have not scrolled past the first task. This is a hidden state to allow
for reversibility of the swipe up from workspace.

Also moved PendingAnimation from quickstep to launcher3.

Change-Id: Iea077bc0ef7c74f6bf7b98d0a638892b9c5fe36c
2018-04-03 11:20:49 -07:00
Tony Wickham
274b9529ff Support swiping between states
- Swiping down on hotseat from overview goes to workspace
- Can swipe up through overview to get to all apps

Bug: 76449024
Change-Id: I7f76d92da976e268cc2a97e55746cca4603e6620
2018-04-03 11:18:18 -07:00
TreeHugger Robot
86d7b2d81d Merge "Make drawDragView protected so it can be used in subclasses." into ub-launcher3-master 2018-04-03 16:53:17 +00:00
Mario Bertschler
ab88b2243d Make drawDragView protected so it can be used in subclasses.
Bug: 73818519
Bug: 74404893
Change-Id: I75b8cc322bd8d96be83adbfaf2c0244df27019d8
2018-04-03 18:13:38 +02:00
Sunny Goyal
2fd7a8bc59 Updating the UI of the options popup to make it look similar to icon popup
Bug: 77327164
Change-Id: I3580df8bf8a43cb44123f203ffed9a85fa33aea7
2018-04-02 12:28:47 -07:00
TreeHugger Robot
3a3878979c Merge "Updating fallback activity" into ub-launcher3-master 2018-03-30 23:53:22 +00:00
Sunny Goyal
41e7328cb5 Fixing LauncherState not getting applied in some cases
> In case of swipe-up from homescreen, super method was not called everytime
> When swiping up from an app, repply() state was skipping as we didn't finish the
  last animation, leading to views staying visible and interactive
> Intercepting touch in RecentsView and pagesView based on visibility

Bug: 76467534

Change-Id: Ia5ef58d508b656f371a32cd2f1de00dd18c6aa5c
2018-03-30 11:06:25 -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
Sunny Goyal
76e2775bb6 Moving some methods related to task launch animation to
recents view and related classes.
This allows the common animation to be used in fallback activity.

Bug: 75979063
Change-Id: I2b5bf5e66406621305b9a076793434f9c5cecdfd
2018-03-30 09:30:11 -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
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
Jon Miranda
64eb8eafb0 Close all floating views when animating to new screen for newly installed apps.
Bug: 64073932
Change-Id: I9253c38391af75ed44a057184144f6a3cee36e69
2018-03-29 11:43:58 -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
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
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
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
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
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
Tony Wickham
d263421c1b Merge "Remove quick switch and improve quick scrub" into ub-launcher3-master 2018-03-23 18:38:56 +00:00
Jon Miranda
a589814dba Show instruction toast when user taps on drag handle.
Bug: 74369785
Change-Id: I7017266efcb0db70a8d151eed10442292cb61e70
2018-03-22 16:32:33 -07:00
Tony
e9054e3207 Remove quick switch and improve quick scrub
- Hide hotseat and center recents vertically during quick scrub
  - Don't animate the state change if launcher wasn't already visible, but still
    wait until the window animation completes before scrubbing past the next app
- Change interpolator of window as it scales offscreen during quick scrub, so that
  it gets out of the way faster and you can see the motion of the next app taking
  its place
- Remove haptic when snapping to task when quick scrub starts (there's already a
  haptic from the home button)

Bug: 70180755
Change-Id: I83f25bc8b791da0676c13fd62698e1f486dc016f
2018-03-22 15:50:19 -07:00
Sunny Goyal
52587f708f Merge "Disabling default focus from icons as we use an animated focus indicator" into ub-launcher3-master 2018-03-22 20:34:39 +00:00
Sunny Goyal
da3cc7a939 Fixing drag and drop states
> Not sending acceptDrop if we are not dragging
> Removing workspace scrim in all-apps

Bug: 74775232
Change-Id: I5b5354ec249d684ffccd4aacd3c47377cc0eb661
2018-03-22 12:50:12 -07:00
Sunny Goyal
c9d3d06773 Disabling default focus from icons as we use an animated focus indicator
Change-Id: I9d3f1b5f5710ff8931f02f1a3a41e4986b4e0f9c
2018-03-22 12:18:35 -07:00
Sunny Goyal
edc6fb4061 Clearing the touch state on ACTON_UP/ACTIUON_CANCEL
The touch listener may not get ACTION_DOWN if it came through an intercept,
in which case it will continue to use the previous state. Clearing the state
ensures that the next touch is not affected.

Bug: 76152745
Change-Id: I18cfbac67aa373e935822003e746af9def6d9122
2018-03-22 10:47:45 -07:00
TreeHugger Robot
fa03e181cf Merge "Support multiple Views of extra hotseat content" into ub-launcher3-master 2018-03-22 02:52:42 +00:00
Winson Chung
84aa5ef1dc Merge "Disable the two-swipe when quickstep is disabled." into ub-launcher3-master 2018-03-22 01:24:15 +00:00
TreeHugger Robot
9b73c86d32 Merge "Fixing crash when changing state while all-apps is not complete bound" into ub-launcher3-master 2018-03-22 01:20:28 +00:00
Sunny Goyal
033e614127 Fixing crash when changing state while all-apps is not complete bound
Change-Id: I564501244cb1478195e5d226da295c13269ff524
2018-03-21 18:05:15 -07:00