Commit Graph

16159 Commits

Author SHA1 Message Date
Tony Wickham 6becf7c07d Add atomic recents animation while swiping up
State handlers can now specify atomic and non-atomic components of
their animations to states, which can be specified when creating a
new animation. There is now one atomic animation, when going from
NORMAL to OVERVIEW (and in reverse):
- RecentsViewStateController's animation (scale/alpha) is all atomic
- WorkspaceStateTransitionAnimation has atomic and non-atomic:
  - Hotseat and workspace alpha is atomic, as is workspace scale
  - Everything else (scrim, translation, qsb and drag handle alpha) is
    non-atomic
- All apps progress is non-atomic

Also simplified dragging through overview; no longer pulls against you,
so we use an OvershootInterpolator when flinging instead of our custom
interpolator for the spring effect.

Bug: 76449024
Bug: 78089840
Change-Id: Iafac84d0c2b99ee9cf9dd5b30e2218286713b449
2018-05-09 12:33:46 -07:00
android-build-team Robot 639b07178f Merge "Using surface rotation instead of insets to determine seascape configuration" into ub-launcher3-edmonton 2018-05-09 16:00:43 +00:00
Tony Wickham e3a968090a Merge "Cleanup swipe detector in case of double cancel" into ub-launcher3-edmonton 2018-05-09 16:00:02 +00:00
Sunny Goyal 578890ad93 Fixing task icon not animating when swiping up
Bug: 79236139
Change-Id: I3db7bd098053ebad0d42fa0245a0dbbafb4291c9
2018-05-08 15:35:29 -07:00
android-build-team Robot ad59f63aab Merge "Consuming launcher instets in multi-window mode" into ub-launcher3-edmonton 2018-05-08 22:08:17 +00:00
Sunny Goyal 9001b10771 Consuming launcher instets in multi-window mode
Bug: 79267409
Change-Id: I283f9eeffaf322cee9289bf90528c8c51d083a50
2018-05-08 14:57:36 -07:00
Sunny Goyal fe392da300 Merge "Chaniging all-apps scrim" into ub-launcher3-edmonton 2018-05-08 18:10:12 +00:00
android-build-team Robot a7158083dd Merge "Import translations. DO NOT MERGE" into ub-launcher3-edmonton 2018-05-08 17:38:57 +00:00
Sunny Goyal a6616dec28 Fixing stateManager not correctly deduping existing animations
Bug: 79251716
Change-Id: I40c3ebf0ec4d49aa1fe1948ad3d83eb87cc1c5f1
2018-05-08 09:16:04 -07:00
Sunny Goyal 927447e71d Chaniging all-apps scrim
> Converting the scrim to View, to better avoid overdraw
> Overview and Spring loaded state have different scrim alpha
> When going from overview to all-apps, there is a color scrim drawn over the overview panel.
  The slef color is merged with this color to prevent overdraw, and the remaining screen is drawn
  with a cut-out round rect path

Bug: 79111591
Change-Id: I26801fde13dd6adb4b06110bbe8087e35cc31847
2018-05-08 08:29:43 -07:00
android-build-team Robot 729020d186 Merge "Insted of animating the icon of the first task, animating the running task icon" into ub-launcher3-edmonton 2018-05-08 04:06:59 +00:00
Vadim Tryshev 68277f0568 Simplifying clear-all transparency calculation
Bug: 78788182
Change-Id: Idb66629f0dcc09240f38f37554a7ff50dbeefb7d
Testing: Manual
2018-05-07 18:15:12 -07:00
Sunny Goyal 59d086c3ce Using surface rotation instead of insets to determine seascape configuration
Insets may not correctly indicate seascape configuration in multi-window or
when the presence of device-cutouts

Bug: 79376298
Change-Id: I8268efca0001fe527a0ffefe48cc71e774fad01c
2018-05-07 17:32:46 -07:00
Bill Yi db7327f85f Import translations. DO NOT MERGE
Change-Id: I6646ab8842f39b209cd6d8eb7bcceb88569e6117
Auto-generated-cl: translation import
2018-05-07 16:38:30 -07:00
Sunny Goyal 28254eec60 Insted of animating the icon of the first task, animating the running task icon
Bug: 79236139
Change-Id: Ib85c22e3898c09a84d3a862c407c23d76a600d9d
2018-05-07 14:59:27 -07:00
android-build-team Robot d10001b5d6 Merge "Improving "shortcuts" window for TalkBack users" into ub-launcher3-edmonton 2018-05-07 20:37:07 +00:00
Vadim Tryshev a50d99f1c1 Improving "shortcuts" window for TalkBack users
Using pane title, updating the description

Bug: 77633140
Test: Manual
Change-Id: Ia3a9ad75995a4cd3ada9b750e760161da70b9a7c
2018-05-07 13:25:39 -07:00
android-build-team Robot c247a00e22 Merge "Fixes an issue where on resetup of the FloatingHeaderView it defaulted to the main recyclerview even when the work recyclerview was active which resulted in the recyclerview not responding to scroll changes." into ub-launcher3-edmonton 2018-05-07 19:28:37 +00:00
android-build-team Robot 2f0101778d Merge "Fix bug where launcher closing animation isn't run." into ub-launcher3-edmonton 2018-05-07 18:59:13 +00:00
Jon Miranda 717127186a Fix bug where launcher closing animation isn't run.
In some cases, we prematurely clear the force invisible flag before composing
the launcher animation, causing us to skip the animation.

Bug: 77205145
Change-Id: I4224741649a4fef34e255abac7b66bcf919c042f
2018-05-07 11:46:33 -07:00
android-build-team Robot ae43d14790 Merge "Removing extra accessibility box from Recents" into ub-launcher3-edmonton 2018-05-07 18:45:06 +00:00
Mario Bertschler 1a637bee18 Fixes an issue where on resetup of the FloatingHeaderView it defaulted
to the main recyclerview even when the work recyclerview was active which
resulted in the recyclerview not responding to scroll changes.

Bug: 72426657
Change-Id: I13c43137d69cd73ff7bdfe641f564f18f8443595
2018-05-07 20:43:11 +02:00
Winson Chung 76a2a6ae66 Clear refs to the controller and saved snapshot upon finishing animation
Bug: 79322746
Change-Id: I8786909615da3368a22300d5e33cefa4b77623fd
2018-05-07 10:22:04 -07:00
Sunny Goyal 39306af7d5 Fixing memory leak on rebind
Folder listeners were only cleared on activity destroy

Bug: 79322746
Change-Id: I5da98b864855303d21b86511de2e2982cd56f305
2018-05-07 09:50:10 -07:00
Vadim Tryshev db1903a567 Removing extra accessibility box from Recents
Disabling accessibility of Workspace (not Recents!) while in Overview,
thus removing strange box appearing while navigating with Switch Access
though Overview. See discussing in the bug.

Bug: 78464518
Change-Id: I86b10e3e435af6e45a94c867e7efcdb5553d32d2
Testing: Manual
2018-05-04 19:30:39 -07:00
android-build-team Robot db05fc28cf Merge "Tweaks to opening app window animation." into ub-launcher3-edmonton 2018-05-04 22:53:05 +00:00
Tony Wickham fa6cbbe15b Cleanup swipe detector in case of double cancel
We manually dispatch cancel when returning to the previous state in
onDragEnd(), but could end in a bad state if getting a second,
external cancel (e.g. by pressing home). Thus, we restore the
onCancelListener after manually dispatching cancel.

Bug: 79258868
Change-Id: Idc4c33cede1d8af1829a4a744b9348d379bcf8f7
2018-05-04 13:17:46 -07:00
android-build-team Robot 7401ebb280 Merge "Annotating groups of views in Overview for accessibility" into ub-launcher3-edmonton 2018-05-04 17:55:56 +00:00
Vadim Tryshev ce367a3218 Annotating groups of views in Overview for accessibility
This will break the initial focus assignment. This should be later fixed
in Talkback.

Bug: 72409756
Test: Talkback reads pane title, even though at a wrong moment.
Change-Id: I38458ef7c3b5745169d7bc17ce8751f683ba9c71
2018-05-04 10:45:12 -07:00
Sunny Goyal 18c699fbc5 Using the system color extraction logic instead of inbuild logic
> Moving the inbuild color extraction logic to the aosp flavor

Bug: 79111591
Change-Id: I766b0397da7224b424cd5f309cedf635d60a5e0f
2018-05-04 10:16:39 -07:00
Tony Wickham 4c7507571c Merge "Only detect swipe directions that lead to new states" into ub-launcher3-edmonton 2018-05-03 21:38:04 +00:00
android-build-team Robot 6e95c8f34c Merge "Fixing wrong padding being set in multi-window + landscape" into ub-launcher3-edmonton 2018-05-03 21:33:16 +00:00
Sunny Goyal b44e80000c Fixing wrong padding being set in multi-window + landscape
In multi-window, we only have the correct availableWidth and not the correct width.
Use availableWidth for setting padding instead of fullWidth

Change-Id: Id437088eea49ab5ad103ded6eed904d776e728c9
2018-05-03 14:19:39 -07:00
Tony Wickham 52240a3aa0 Only detect swipe directions that lead to new states
This cleans up the code and ensures that the current state animation
is always initialized when we get drag events.

Also log when we pass through states.

Bug: 78017680
Change-Id: I54ab42923ed539940ea708973ad65f5793669c11
2018-05-03 14:04:25 -07:00
Tony Wickham 257c9ea8d1 Merge "Don't crash if getWidth is 0" into ub-launcher3-edmonton 2018-05-03 20:59:40 +00:00
Winson Chung 83f58f2d2c Fix incorrect reporting of launch failure
- Launcher uses the same consumer to handle task launch failure and
  animation-cancel, so only show the notification when it is an
  actual launch failure.

Bug: 79209142
Change-Id: I6b708ac9888673056f2c6de1d5aee4a281c61027
2018-05-03 20:37:35 +00:00
Tony Wickham 181968b87b Don't crash if getWidth is 0
Bug: 79203256
Change-Id: I3f91adbda40931e882c4f768794a0d803730805e
2018-05-03 12:50:05 -07:00
Winson Chung 3f596f649d Also setEarlyWakeup for single frame transaction to hide window.
Bug: 79204453
Change-Id: Ib13f8a0c49b03fdce960b3f480c598bb70a113ef
2018-05-03 18:24:06 +00:00
Winson Chung 9ebc88a381 Fixing transaction regression.
- Need to call setEarlyWakeup() for each transaction, not just the
  first

Bug: 79204453
Change-Id: Ib83bddb9eaeb7563954bc9d7f584fdd5d302b501
2018-05-03 10:57:23 -07:00
Winson Chung 94262dedb7 Skip snapping to page when there are no pages
- This scrolls the recents view, which affects the empty recents icon
  position.

Bug: 79170402
Test: Clear all tasks, then quickscrub
Change-Id: I316805c0083d4ad65a8df0fafd88545859054405
2018-05-02 17:45:14 -07:00
android-build-team Robot b8e5bf3e42 Merge "Handling activity recreate due to configuration changes in the middle of the long fling" into ub-launcher3-edmonton 2018-05-02 23:16:13 +00:00
android-build-team Robot d5efb650af Merge "Using a custom view instead of ImageView to avoid relayout when the icon changes" into ub-launcher3-edmonton 2018-05-02 22:59:02 +00:00
Sunny Goyal 16593d7932 Handling activity recreate due to configuration changes
in the middle of the long fling

Bug: 77651657
Change-Id: I8107c424eb37512ce78c943da04a6e7faf33be65
2018-05-02 15:53:22 -07:00
Sunny Goyal 85c53f2af5 Using a custom view instead of ImageView to avoid relayout when the icon changes
Bug: 78585335
Change-Id: I078aec5b80ec45933ba4974df68cab23ac4a0ca0
2018-05-02 15:38:21 -07:00
Hyunyoung Song 960ab6c085 Merge "Clear all task button should not log as individual swipe up Bug: 78895803" into ub-launcher3-edmonton 2018-05-02 22:32:55 +00:00
Mehdi Alizadeh 553de87c80 Merge "Refactors ButtonDropTarget to add extension data" into ub-launcher3-edmonton 2018-05-02 22:23:20 +00:00
android-build-team Robot 433ef09d29 Merge "Moving some callbacks from LauncherCallbacks to OverviewCallbacks" into ub-launcher3-edmonton 2018-05-02 22:06:10 +00:00
android-build-team Robot 145cb8420d Merge "Log OVERVIEW_ACTIVITY via MetricsLogger in quickstep Bug: 77920179" into ub-launcher3-edmonton 2018-05-02 21:53:59 +00:00
Hyunyoung Song a05860421f Log OVERVIEW_ACTIVITY via MetricsLogger in quickstep
Bug: 77920179

Change-Id: Id4c7dc3d535c7a8009d340183e640b04ab07408a
2018-05-02 14:34:23 -07:00
Tony Wickham 1817942d8a Merge "Add a quick scrub threshold" into ub-launcher3-edmonton 2018-05-02 21:21:24 +00:00