Commit Graph

15737 Commits

Author SHA1 Message Date
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
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
Sunny Goyal e9c897080c Making read permission for android content provider as systemSignature
to prevent unwanted access to user data

Bug: 74360014
Change-Id: I0155c25d91609f4492f56b221c372ec3f51442e3
2018-03-23 14:36:48 -07:00
Jonathan Miranda 6b34edcc0f Merge "Fix logic to get icon from any view that is a child of DeepShortcutView." into ub-launcher3-master 2018-03-23 21:15:57 +00: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
TreeHugger Robot f6a8f955ed Merge "Using dimension instead of relyong on relativeLayout for view positions" into ub-launcher3-master 2018-03-22 21:58:03 +00:00
Sunny Goyal 9623ed1894 Using dimension instead of relyong on relativeLayout for view positions
Search box can be hidden as a result of various state flags. But the dependent
views should still retain their positions

Change-Id: I820ac11d120f9c78a457e64f3f21d9e8ff3f6110
2018-03-22 14:42:00 -07:00
TreeHugger Robot bd590a4cd6 Merge "Focusing on the second task on Alt+Tab" into ub-launcher3-master 2018-03-22 21:02:35 +00:00
Vadim Tryshev 7f55336505 Focusing on the second task on Alt+Tab
Reusing the quick scrub codepath. I’m postponing the cleanup with
removing duplicated code and isolating the reused code so that it’s
separated from touch events.

I’m accumulating the cleanup notes in a doc, and will create a Q bug
from them at the end.

This CL leaves mOverviewCommandHelper.onOverviewShown/Hidden() unused,
but we may use them later when implementing the case when System UI
invokes the callback with different params.

Note that the noew code works even when Alt+Tab is pressed while the
Overview is already open.

Bug: 73090995
Test: Alt+Tab. Alt+Tab while Overview is open.
Change-Id: Iba05c5628959b3640ddd643dead0fba3ae4714c1
2018-03-22 13:40:46 -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
TreeHugger Robot d3b4dfa7e3 Merge "Fixing drag and drop states" into ub-launcher3-master 2018-03-22 20:08:52 +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
Tony Wickham a6db64f426 Exit from quick scrub if unable to launch task onQuickScrubEnd
Bug: 76152304
Change-Id: I142b1a894d4f1e2dcf18631e0599482ff4845995
2018-03-22 12:20:22 -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
Sunny Goyal 25a5472947 Resetting UI at the end of every app transtion (instead of using a global reset)
Bug: 76145902
Change-Id: Ia7851026b5e33a67434787bd10441fe714bfc64b
2018-03-22 09:31:43 -07:00