Commit Graph

34630 Commits

Author SHA1 Message Date
Kevin 14879827e3 Merge "Check orientation changes on task item attaching" into ub-launcher3-qt-dev
am: 4ec8209c38

Change-Id: I52307db25cf82f53f8407d0b783888819bcd16d7
2019-05-02 14:07:35 -07:00
Tony Wickham 06fbb5ec8f Merge "Don't draw task insets or corners in multi window mode" into ub-launcher3-qt-dev 2019-05-02 21:03:00 +00:00
Kevin 096a52cac0 Merge "Fix bug where we left recents right after entering" into ub-launcher3-qt-dev
am: b0d9ef6cdc

Change-Id: I0d120b8bf32a19d10c559bb1d3816ffad0337172
2019-05-02 14:02:36 -07:00
TreeHugger Robot 4ec8209c38 Merge "Check orientation changes on task item attaching" into ub-launcher3-qt-dev 2019-05-02 20:56:28 +00:00
TreeHugger Robot b0d9ef6cdc Merge "Fix bug where we left recents right after entering" into ub-launcher3-qt-dev 2019-05-02 20:50:03 +00:00
Kevin 1350406e07 Merge "Add scrim under status bar and above thumbnails." into ub-launcher3-qt-dev
am: 79be2caf1d

Change-Id: I48b071621a90285507e7893f3d08aa52120b7dee
2019-05-02 13:47:29 -07:00
TreeHugger Robot 79be2caf1d Merge "Add scrim under status bar and above thumbnails." into ub-launcher3-qt-dev 2019-05-02 20:41:15 +00:00
Kevin b731c07e04 Check orientation changes on task item attaching
onConfigurationChanged is only passed down to views that are currently
attached. Naturally, a recycler view has some views in its pool that are
not attached and thus do not get the call when the orientation changes.
When this happens and the view is then attached later, it can be in an
incorrect orientation.

To fix this, we save the current orientation the task item is using and
check on attaching if it's still the same as the orientation the device
is in. If it isn't we then run the orientation change logic.

Bug: 131848689
Fix: 131848689
Test: Change orientation with some views not attached, see that they are
correct orientation when attached
Change-Id: I3dec501c332338444e321b4a50876c7840a5bc6e
2019-05-02 13:40:18 -07:00
Sunny Goyal 1672cb68ba Merge "Adding support for blocking gesture nav on a particular activity" into ub-launcher3-qt-dev
am: 6a2c585073

Change-Id: Ifdc9d4bf5ab149c246da3cb7fd15d5011fe834d8
2019-05-02 13:22:28 -07:00
TreeHugger Robot 6a2c585073 Merge "Adding support for blocking gesture nav on a particular activity" into ub-launcher3-qt-dev 2019-05-02 20:15:49 +00:00
Sunny Goyal 680d2d0949 Merge "Updating the quickswitch direction in SEASCAPE" into ub-launcher3-qt-dev
am: e414c65aab

Change-Id: I9c23128460118b1d89502498c492a3a460abe532
2019-05-02 13:14:22 -07:00
Sunny Goyal 69300227c4 Adding support for blocking gesture nav on a particular activity
Bug: 129796627
Change-Id: I939598f62924fb113e913e0309247d8a2088bf8a
2019-05-02 13:02:22 -07:00
Sunny Goyal e414c65aab Merge "Updating the quickswitch direction in SEASCAPE" into ub-launcher3-qt-dev 2019-05-02 19:53:16 +00:00
Tony Wickham 54acd8a29a Don't draw task insets or corners in multi window mode
Test (all in multi window and non-multi window):
- Quick switch from home screen
- Quick switch from an app
- Swipe up from an app (slowly)
- Swipe down on a task (slowly)

Bug: 131689686
Change-Id: I69bf6dd1a34904cdf5ec7febea8f858012e2a0ac
2019-05-02 12:31:02 -07:00
Sunny Goyal 1f2bb9d0b7 Updating the quickswitch direction in SEASCAPE
Change-Id: I9b4ff52971a70e2eae0567c2430916b0deaebd32
2019-05-02 12:11:40 -07:00
Kevin 990e7d4593 Fix bug where we left recents right after entering
There was an issue where tapping recents while there were no tasks and
we first launched would not actually go to recents. This was because we
had the leave recents call tightly coupled with showing the empty view.
When the user first goes to recents and no task is available, we animate
to the empty view. However, this also causes us to leave the view even
though nothing happened and it results in the user leaving right after
enterring.

Instead, we should couple the leaving logic with the actual action,
removing the task.

Bug: 131708240
Fix: 131708240
Test: Go to recents while empty, goes on first tap now
Test: Ensured swipe to remove => leave recents logic still works
Change-Id: Ifff6d051d957838c3cfae200a2a8ebb316b22965
2019-05-02 12:09:26 -07:00
Kevin e659758f17 Add scrim under status bar and above thumbnails.
For Recents Go, the thumbnails actually go directly under the status bar
text, so we should ensure that there is some scrim to ensure it's always
readable. We do this by adding a foreground drawable scrim to the
activity's root view.

Since this root view is used in other Launcher states, Launcher has to
toggle this on and off when going/leaving recents. When this view is
just being used for recents as a stand-alone, however, (i.e. when the
user has a different default launcher), it's fine to set this once at
the beginning since nothing else uses the root view.

Bug: 131834685
Fix: 131834685
Test: When quickstep is the default, go to recents and back. Status bar
is readable. Scrim does not animate when going to and from recents.
Test: When quickstep is not the default, scrim shows up fine
Change-Id: I5d88a1fd873860887b3141e1ec0ee999f59ccfad
2019-05-02 11:46:32 -07:00
Kevin 3de7e154ce Merge "Anti-alias thumbnail corners to look smoother" into ub-launcher3-qt-dev
am: a51d6422c2

Change-Id: I43ab0936a442b157e59a14cbd48425c5c4be1c52
2019-05-02 11:42:30 -07:00
TreeHugger Robot a51d6422c2 Merge "Anti-alias thumbnail corners to look smoother" into ub-launcher3-qt-dev 2019-05-02 18:35:10 +00:00
Tony Wickham 5e3ba8d36c Merge changes I705b7a65,I98a2e71a into ub-launcher3-qt-dev
am: da9cf0f66b

Change-Id: I38f22c8c5d704b9e45174d63a1e2057c5c04e835
2019-05-02 11:32:33 -07:00
Sunny Goyal ca305cd909 Initial changes to creating a fake landscape Launcher UI
am: ae6e318711

Change-Id: If85d50eb4734d4b65e6b62ebf1254e750b4589ce
2019-05-02 11:27:17 -07:00
Tony Wickham da9cf0f66b Merge changes I705b7a65,I98a2e71a into ub-launcher3-qt-dev
* changes:
  Allow touches on launcher while animating to home
  End window animation to home when handler invalidated
2019-05-02 18:25:30 +00:00
Kevin 70aa79ffa1 Anti-alias thumbnail corners to look smoother
Thumbnail corners should be anti-aliased so that they look smoother and
less rough.

Bug: 131779031
Test: Manual, go to recents and see corners
Change-Id: I49a299671ec37f56b6eebe2dd2eb71790e8cb2b4
2019-05-02 11:14:01 -07:00
Sunny Goyal ae6e318711 Initial changes to creating a fake landscape Launcher UI
Workspace and hotseat are drawn in rotated UI giving the impression that the
device is in Portrait, even though it is in landscape

Bug: 131360075
Change-Id: I29c4068af25fd4dcf7039b9a45886e864a137977
2019-05-02 10:59:28 -07:00
Jon Miranda 27a5666687 Merge "Remove shortcuts/deepshortcuts as targets for swipe up to icon animation." into ub-launcher3-qt-dev
am: c2803ec5b2

Change-Id: I766dc2cd9dfb93062661245a92e0ba223893bd21
2019-05-02 10:19:10 -07:00
TreeHugger Robot c2803ec5b2 Merge "Remove shortcuts/deepshortcuts as targets for swipe up to icon animation." into ub-launcher3-qt-dev 2019-05-02 17:02:03 +00:00
Tony f439cc3842 Merge "Exclude TaskViews from system gestures" into ub-launcher3-qt-dev
am: 36abdcbc10

Change-Id: I9be437974871324c13249ac6761047f50b193ddd
2019-05-02 09:48:58 -07:00
TreeHugger Robot 36abdcbc10 Merge "Exclude TaskViews from system gestures" into ub-launcher3-qt-dev 2019-05-02 16:35:27 +00:00
Tony f1d8260e2d Exclude TaskViews from system gestures
Test:
- Enter overview
- Swipe from right edge (no TaskView) goes back
- Swipe from left edge on top of TaskView scrolls to it
- Now swipe from either edge scrolls
- Swipe outside carousel goes back

Bug: 129297464
Change-Id: I0abd444a6e8d8daf79a824c94bdd05c01dfe19cb
2019-05-02 09:23:06 -07:00
Tony Wickham 1a468145ab Allow touches on launcher while animating to home
Previously we only proxied if the end target was recents (now we do it
for home as well) and only proxied to the controllers, not to all views.
We still only proxy to controllers for touches in the nav bar, but
otherwise we dispatch touches through normal view hierarchy.

Tests while animating home:
- Swipe down for notifications
- Swipe up for all apps
- Long press icon or wallpaper for shortcuts
- Tap a folder to open it
- Tap an icon to launch it (currently no animation plays, looking into
  it separately)

Bug: 131775822
Change-Id: I705b7a657b6d17bc0e24ed4fb44ecfb0f319e942
2019-05-02 09:21:47 -07:00
Tony Wickham a429fdbbe6 End window animation to home when handler invalidated
We did this already for mCurrentShift, which is used for all animations
except home animation. Now we do it for the home animation as well to
ensure we are properly cleaned up for the next interaction.

Test: Swipe up to home and double tap nav region before animation
finishes. Before, this would return to the app you swiped up from but
was in a broken state where subsequent swipes were ignored. Now we
jump to the home screen and remain there.

Bug: 130802487
Change-Id: I98a2e71a1791f5580451c94a35af98da193ff12f
2019-05-02 09:08:15 -07:00
Jon Miranda a9622f38cc Remove shortcuts/deepshortcuts as targets for swipe up to icon animation.
We'll add it back when b/129067201 is fixed.

Bug: 131809649
Change-Id: I6f009a84b86717f86394da6fb8540eb3f226419a
2019-05-02 08:55:38 -07:00
Jon Miranda 27530c99e2 Use original BubbleTextView icon for legacy stamped forced adaptive icons.
Bug: 129297366
Change-Id: Ic71c42e603cc361b716ba65067a772d19ef394f7
2019-05-02 08:45:27 -07:00
android-build-team Robot afe944dfaf Snap for 5523284 from cd5ed8b28f to qt-release
Change-Id: I687d1925d828455ee7ddfc6ce2cd4582c6535c74
2019-05-02 03:12:55 +00:00
android-build-team Robot 530a5cbed3 Snap for 5523005 from a86fc91580 to rvc-release
Change-Id: Idcbf767e41ddc60fe215f3051ecd7181e9f49bd1
2019-05-02 03:03:55 +00:00
Alex Mang ec1cffa72c Merge "Clear should not show after Widget Configuration activity" into ub-launcher3-qt-dev
am: 35bda496f3

Change-Id: I1a7b7507a5e7e4136aa494a8f8c5995c89f17cf8
2019-05-01 17:50:33 -07:00
Alex Mang 35bda496f3 Merge "Clear should not show after Widget Configuration activity" into ub-launcher3-qt-dev 2019-05-01 23:59:09 +00:00
Vadim Tryshev d0d2ebe7f7 Merge "Remove tracing for fixed bugs" into ub-launcher3-qt-dev
am: f57c62c091

Change-Id: I7cb4cb3345e8beb28e38dc6827c102f14cb27694
2019-05-01 16:46:41 -07:00
Vadim Tryshev f57c62c091 Merge "Remove tracing for fixed bugs" into ub-launcher3-qt-dev 2019-05-01 23:39:34 +00:00
Hyunyoung Song 497708c297 Clear should not show after Widget Configuration activity
Bug: 119847865

TL;DR;;
When configuration activity starts, simply make everything in drop
target bar invisible.

Change-Id: I37d067168368de4ee43b54e5dc95f958f5e94623
2019-05-01 16:33:31 -07:00
Sunny Goyal 3ecd9efea8 Disabling flaky test
am: c7fefa6151

Change-Id: I7f0b8e9cfdf32c73c4218ef4150992f165c74f6f
2019-05-01 16:33:22 -07:00
vadimt 8649cf29e4 Remove tracing for fixed bugs
Bug: 129434166
Bug: 131170582
Change-Id: Ia9b356594001d96c69ffbb7f8b767b2f54ed5feb
2019-05-01 16:10:56 -07:00
Sunny Goyal c7fefa6151 Disabling flaky test
Bug: 131772711
Change-Id: I98a20223845aa66c77e7a4b6fc1b9415ed046a86
2019-05-01 15:53:56 -07:00
Vadim Tryshev 2c47ed5b94 Merge "Reenabling prediction tests" into ub-launcher3-qt-dev
am: 0cad319633

Change-Id: I132ed756894c612de63e499b97e31345d77ff238
2019-05-01 15:50:17 -07:00
Hyunyoung Song 0380dc5dec Merge "Move theme res logic to Themes static class. Bug: 131310726" into ub-launcher3-qt-dev
am: d960d4ec2b

Change-Id: Idca0849c3c3988bffc1874d7b39b50a5cfcfb590
2019-05-01 15:49:17 -07:00
Vadim Tryshev 0cad319633 Merge "Reenabling prediction tests" into ub-launcher3-qt-dev 2019-05-01 22:08:35 +00:00
vadimt 50af77bc46 Reenabling prediction tests
Bug: 131188880
Change-Id: Ie06a39a206a84cdf9384560c0d8498e51af957e5
2019-05-01 14:54:28 -07:00
vadimt bcf0d1e082 Reenabling switching between nav modes in tests
Bug: 130558787
Bug: 131419978
Bug: 131630813
Change-Id: I8d62c7f2b33ac94bd4f899f7c8ed00c8293841e7
2019-05-01 14:35:04 -07:00
Hyunyoung Song d960d4ec2b Merge "Move theme res logic to Themes static class. Bug: 131310726" into ub-launcher3-qt-dev 2019-05-01 21:27:37 +00:00
Matthew Ng a86fc91580 Merging ub-launcher3-qt-dev, build 5508646 am: cd5ed8b28f
am: d9d4db6646

Change-Id: I0f98681338028023c8681b7a342ad5209fc2625b
2019-05-01 14:13:51 -07:00