Commit Graph

16542 Commits

Author SHA1 Message Date
Matthew Ng b5669efa36 Touching outside the task in overview goes home
There is also a deadzone area around the clear all button to tap easier.

Test: start overview click anywhere that is not the shelf or task
Change-Id: I187ff264444da542aca111b57d94c8199f5a0384
Fixes: 110232233
2018-06-21 16:03:48 -07:00
TreeHugger Robot 3471127e8b Merge "UNREVIEWED: TAPL prototype for in-lab flake test" into ub-launcher3-edmonton-polish 2018-06-18 23:10:06 +00:00
Vadim Tryshev 5a7d701d55 UNREVIEWED: TAPL prototype for in-lab flake test
These sources didn't pass a normal CR, and mustn't be used in prod. The
goal of landing them is to start in-lab flakiness tests ASAP. A normal
code review will follow after landing cleanup CLs.

Bug: 110103162
Test: Running TaplTests suite
Change-Id: I051591c9af7822d4cbae4261e66563f1ccc1cfcc
2018-06-18 14:29:34 -07:00
Sunny Goyal 0eb466ea2f Merge "Exposing some methods to make QSB customization easier" into ub-launcher3-edmonton-polish 2018-06-18 19:26:46 +00:00
Santiago Etchebehere 257b9c1ac1 Reapply the change to not clip recents
Redo the fix from ag/4326104 as it got removed when reverting
the overscroll fix in ag/4358154

Change-Id: I87d186cbf7675948f4cd5d8aa1a907db1aad5ea0
2018-06-18 10:18:23 -07:00
Sunny Goyal 95cded5424 Exposing some methods to make QSB customization easier
Bug: 110336301
Change-Id: I74d73bfd4b345bae2ecab144b37f1af1126e4725
2018-06-18 01:11:46 -07:00
Santiago Etchebehere 260b4cbd90 Revert "Adding overscroll effect in recents list"
This reverts commit 4d6b1a95a1.

Bug: 110279118

Change-Id: I794b2c7af076d63901f2286fd2ff3d06c6e39fee
2018-06-15 23:55:03 +00:00
Hyunyoung Song 73088c2aae Merge "Create a param to return scale used for bitmap creation Bug: 110082040" into ub-launcher3-edmonton-polish 2018-06-15 22:00:32 +00:00
TreeHugger Robot c3dde3bdec Merge "Allowing taskView to have focusable children (using taskOverlays)" into ub-launcher3-edmonton-polish 2018-06-15 21:13:26 +00:00
Sunny Goyal 32b2896e6f Allowing taskView to have focusable children (using taskOverlays)
Bug: 110271905
Change-Id: Ie75a680efa61d3ded6142ff4e65198a704603639
2018-06-15 21:04:18 +00:00
Jonathan Miranda 0d2c6c23ed Merge "Fix bug where QSB gets clipped when flinging All Apps open." into ub-launcher3-edmonton-polish 2018-06-15 19:44:12 +00:00
TreeHugger Robot f37cfa72d2 Merge "Immediate 2nd quickscrub should not cancel if same state" into ub-launcher3-edmonton-polish 2018-06-15 19:36:41 +00:00
Jon Miranda 3c71c6a564 Fix bug where QSB gets clipped when flinging All Apps open.
Bug: 77538324
Change-Id: I3e40346559fd3b7010d92d28e12efcf2d8581640
2018-06-15 11:19:32 -07:00
TreeHugger Robot ae7c6d1284 Merge "Add hard clip for overscrolled children to not be visible above QSB." into ub-launcher3-edmonton-polish 2018-06-15 16:38:49 +00:00
Jon Miranda b8ca1aa7ee Add hard clip for overscrolled children to not be visible above QSB.
We lose the RecyclerView fading edge, but this is the simplest/less risky
solution.

Change-Id: I7aa39a33678ed8a9b9cf9f17c9ad8c14707b0299
2018-06-15 09:26:57 -07:00
Jonathan Miranda 3871e72686 Merge "Fix bug where add to folder fails even when folder creation animation runs." into ub-launcher3-edmonton-polish 2018-06-14 23:14:15 +00:00
Hyunyoung Song 8d71d49043 Merge "Change target SDK for Launcher3Tests.apk to run on Sailfish device (API28) Bug: 78589564" into ub-launcher3-edmonton-polish 2018-06-14 21:55:16 +00:00
Hyunyoung Song c22dec25f7 Change target SDK for Launcher3Tests.apk to run on Sailfish device (API28)
Bug: 78589564

https://sponge.corp.google.com/target?tab=Details&run=1&sortBy=STATUS&show=ALL&id=453a6b41-ff25-4a20-927a-561abad0e730&target=launcher3_unittests_invocation&searchFor=

Change-Id: I7e97545329e684304c074c66bca409467e17b90b
2018-06-14 14:38:14 -07:00
Hyunyoung Song 4bc3cc3111 Create a param to return scale used for bitmap creation
Bug: 110082040

Change-Id: I35254289a216be4db96f452db184454581a59b32
2018-06-14 12:28:42 -07:00
Matthew Ng f8fafa2847 Immediate 2nd quickscrub should not cancel if same state
Trigging quickscrub immediately after a previous quickscrub would cause
the controller to cancel even if the state change was from overview to
overview, then controller will not do auto-advancing because it thinks
quickscrub has been cancelled. If the state changes but both are
overview then do not cancel and quickscrub can do auto-advancing.

Change-Id: I309937572ad23eea14662501f41c13cd79dd10ab
Fixes: 110006796
Test: quickscrub, then let go and soon after quickscrub again
2018-06-14 11:05:44 -07:00
Tony Wickham 4f8e417bca Merge "Report when a notification is shown in the popup" into ub-launcher3-edmonton-polish 2018-06-14 16:27:42 +00:00
Tony Wickham a32b6a1d37 Merge "Add padding between hotseat and insets in multiwindow landscape" into ub-launcher3-edmonton-polish 2018-06-14 16:27:18 +00:00
TreeHugger Robot 9d2a75f741 Merge "Prerequisites for TAPL" into ub-launcher3-edmonton-polish 2018-06-13 21:21:45 +00:00
Tony Wickham 1eeffbee01 Add padding between hotseat and insets in multiwindow landscape
Right now there's almost no room between the hotseat icons and the
nav  bar in this mode, and it looks kind of bad. It also causes
b/109946631 which is fixed by this change.

Also fix placement of popup in RTL landscape (was incorrectly inset)

Bug: 109946631
Change-Id: I324485da0048b907776b16b719b631c5314e5696
2018-06-13 12:37:47 -07:00
Jorim Jaggi fca9eec464 Optimize system bar switching animations
- Fix a bug where the wrong time was used when the activity was in
overview, but overview wasn't actually visible.
- Fixing this looks pretty bad. Introduce a pre-delay since our
animations decelarate heavily at the end.
- Consolidate logic between swipe-up and swipe-down. Take a middle
value that is most in line with the other animations.

Test: Open/close apps from home and recents with and without
swiping.
Fixes: 109906294

Change-Id: I9cd5568c60fe7281d0f71a75981a3003770e659e
2018-06-13 14:44:18 +02:00
Sunny Goyal 2b03b713f7 Fixing atomic animation not getting completed properly
> Finishing the atomic animation to that proper states are applied
> Offsetting the duration of atomic animation so that it completes along with
  the swipe animation

Bug: 80432882
Bug: 86308723
Bug: 80549582
Change-Id: I8a3b44c2c7017e241b2fbdbb96c5d67edbb359d1
2018-06-12 17:08:55 -07:00
Jon Miranda 36f6359c21 Fix bug where add to folder fails even when folder creation animation runs.
If the distance > max distance for folder creation, we clear the drag mode
if it was previously set.

Bug: 78919972
Change-Id: Ibd456c0981ebb20958c54d21ba3996172d2dd554
2018-06-12 15:26:52 -07:00
Vadim Tryshev 74c261c89f Prerequisites for TAPL
Adding things that will be used by TAPL.

1. Adding Ctrl+W to open widgets
2. Marking a UI element with shortcuts_and_widgets
id. Example of usage: we want to be sure we are in all apps.
A somewhat paranoid way to check this is to check that
apps_view is on, and workspace and overview_panel are off.
However, workspace is always in the hierarchy. We use
shortcuts_and_widgets instead.

Bug: 110103162
Test: Manual
Change-Id: I2a851e16c477f7ee895b459530bc5a1ff19e32f8
2018-06-12 14:54:23 -07:00
Matthew Ng 59ffaf035d Fixes the task header view location in landscape
The header was off by forgetting to calculate with insets. Also rtl
needed to start from left to do calculations correctly.

Test: start overview in landscape, press icon of task
Change-Id: I561dbe315c7be0b4dee602bfd17b4abfffa55605
Fixes: 110096772
2018-06-12 13:52:50 -07:00
Sunny Goyal b0e4126ad0 Do not clip recents view as it scales down to reveal more content
Change-Id: Icc26dec5fc4d6b19d22eb975628de3856f2ea471
2018-06-12 10:02:44 -07:00
Sunny Goyal 267d04f79b Merge "Adding overscroll effect in recents list" into ub-launcher3-edmonton-polish 2018-06-12 16:56:02 +00:00
Tony Wickham fe1402d8a4 Merge "Fix some issues with haptic" into ub-launcher3-edmonton-polish 2018-06-12 15:55:30 +00:00
TreeHugger Robot 90edc36dd9 Merge "Dismiss task menu view after pinning from tapping menu item" into ub-launcher3-edmonton-polish 2018-06-11 23:56:09 +00:00
Sunny Goyal 4d6b1a95a1 Adding overscroll effect in recents list
Bug: 109828536
Change-Id: If2b65cfc2b7f14deb721436f7aa378c4a2c5c468
2018-06-11 16:42:37 -07:00
Tony Wickham 29aef52be3 Fix some issues with haptic
- Don't have double haptic on quick scrub
- Correctly check interpolated progress to determine final state,
  so that it always aligns with the haptic (i.e. passing the haptic
  means letting go will go to the new state)

Bug: 109709720
Change-Id: I702bb76a4c15f932f923e81a14cc49f6a9126cb8
2018-06-11 23:23:49 +00:00
Sunny Goyal c82c6396e9 Moving clear all button inside the recents view
Bug: 72222505
Bug: 109828536

Change-Id: I843b79db3e47abc2c41ed78f186b9c941941ddef
2018-06-11 13:51:03 -07:00
Matthew Ng 89da6799e4 Dismiss task menu view after pinning from tapping menu item
OnClickListener for pin menu option will close all floating views such
as the task menu view.

Test: launch a transparent app, swipe up and try to pin it
Change-Id: I0a3253c79fd543e6044037835ffd74777c76a17d
Fixes: 109678966
2018-06-11 11:49:20 -07:00
TreeHugger Robot 367a53ec13 Merge "Added haptic feedback when swipe/fling up from an app in fullscreen" into ub-launcher3-edmonton-polish 2018-06-11 17:57:38 +00:00
Matthew Ng c4b75abf3b Added haptic feedback when swipe/fling up from an app in fullscreen
This includes swiping/fling up from a fullscreen app and swiping/fling
down a task to a fullscreen app.

Test: swipe up when app is fullscreen
Fixes: 80543530
Change-Id: Iee259284cc6d4fe1e784532f0822ffd38cdee280
2018-06-11 10:45:47 -07:00
Sunny Goyal 0f3af75eb0 Making the self always follow the vertical progress without any min height limit.
After a certain height, the self fades out, but keeps following the vertical progress.

Eventually the fade-out can be decoupled from vertical progress and tied to the state

Bug: 109829614
Change-Id: I9808ed3fa1730b938196bc6d3518a6d096a13f4c
2018-06-11 09:51:42 -07:00
TreeHugger Robot 808e7cae66 Merge "Changed the Task Menu to overlay on top of the task view" into ub-launcher3-edmonton-polish 2018-06-08 23:59:21 +00:00
Sunny Goyal 03f17fabf0 Fixing build breakage due to theme change
Change-Id: I0d1f1b69a5dbde0cccfdcb925495018ee82403bd
2018-06-08 15:23:17 -07:00
Matthew Ng 1b9c3d6fe3 Changed the Task Menu to overlay on top of the task view
When tapping the icon for each card in overview, the options will
overlay on top of the task view below the icon instead of popping up
above the task view.

Change-Id: I42746022432385d976134988262514a238a5066e
Fixes: 109676098
Test: go to overview, tap the icon for the task
2018-06-08 14:24:22 -07:00
Winson Chung 1cabec12ea Merge changes from topic "am-6122ccdb-5b5a-43f4-8f32-3d9e1a775ee9" into ub-launcher3-edmonton-polish
* changes:
  [automerger] Set correct target position for other targets am: 707c09d3e3
  Set correct target position for other targets
2018-06-08 19:19:29 +00:00
Sunny Goyal 5ac259c46e Merge "Exposing some private methods in FastBitmapDrawable" into ub-launcher3-edmonton-polish 2018-06-08 18:51:41 +00:00
Tony Wickham 15852dc121 Merge "Track shelf rather than app window" into ub-launcher3-edmonton-polish 2018-06-08 18:32:38 +00:00
Sunny Goyal bd88f396dc Defining a base theme, which can be overriden by derivative projects without
affecting launcher theme

Bug: 70220582
Change-Id: Ie3069686be5e6a42910e90541db2d6b5b79e25c1
2018-06-08 11:20:01 -07:00
Tony 7f300e3dff Track shelf rather than app window
Change swipe length to be the height of the shelf rather than the distance
to the bottom of the task in recents. The shelf already uses this distance
to determine its starting offset, and the window uses it to determine how
fast to move. So by setting the distance to the height of the shelf, we
effectively make the window move slightly faster and the shelf move directly
under your finger.

Bug: 109817942
Change-Id: I9b20bbed58cccc6f74aba36000a6ca272f9d554d
2018-06-07 18:23:19 -07:00
Sunny Goyal 0ffab44153 Exposing some private methods in FastBitmapDrawable
Bug: 109858110
Change-Id: Ica07426cb413876d90a1b8ff49645c4711e15fc9
2018-06-07 17:32:23 -07:00
Android Build Merger (Role) 53d57998c1 [automerger] Revert workaround for missing frame callback am: 2ad2859f1e
Change-Id: Ie92ada3a301bad9cf0cdd355285503f656c8a125
2018-06-07 22:23:56 +00:00