Commit Graph

4629 Commits

Author SHA1 Message Date
Suphon Thanakornpakapong cc55f3fe9c Fix quick app switch gesture on OOS 2021-06-12 09:40:35 +07:00
Suphon Thanakornpakapong 115bd857d3 Allow overriding window corner radius 2021-06-10 23:20:24 +07:00
Suphon Thanakornpakapong bde6b01cff Add an option to show clear all button 2021-06-10 21:37:37 +07:00
Suphon Thanakornpakapong 2413c65831 Revert "Launcher3: move clear all button to actions view"
This reverts commit b15cbb10ba.
2021-06-10 20:39:05 +07:00
Suphon Thanakornpakapong b48e538aa2 Move preferences package 2021-06-06 14:56:10 +07:00
Suphon Thanakornpakapong 4cd19216df Rename LawnchairLauncherQuickstep to LawnchairLauncher 2021-06-03 23:48:59 +07:00
Suphon Thanakornpakapong f0b46c9199 Fix crashes below Q 2021-06-03 11:13:09 +07:00
Suphon Thanakornpakapong 61d2358ba1 Fix more crashes below Android 10 2021-05-31 10:47:43 +07:00
Suphon Thanakornpakapong 7c26603f33 Fix depth controller crash below 11 2021-05-31 10:15:19 +07:00
Suphon Thanakornpakapong d159386f40 Don't register the task stack listener when recents is not enabled 2021-05-19 12:44:05 +07:00
Vachounet b15cbb10ba Launcher3: move clear all button to actions view
Change-Id: I7a0b2729c163169f7606ad4644870d07d5165e8e
2021-05-09 21:22:05 +05:30
Suphon Thanakornpakapong 397d4aa243 Major preference refactor
- Migrate all preference logic to PreferenceManager
- Make preference UI directly hook to PreferenceManager
2021-04-28 21:07:32 +07:00
Patryk Michalik f6c6bb25d2 Optimise code, indicate changes in copyright headers 2021-04-28 11:37:18 +02:00
Suphon Thanakornpakapong 7235a78603 Use existing StatusBarTouchController to handle swipe down 2021-04-28 10:34:14 +07:00
Patryk Michalik aab6b80fa0 Relicense to and fix compliance with Apache 2.0
[skip ci]
2021-04-24 09:48:35 +02:00
Patryk Michalik ec28554021 Fix opacity resetting on restart, temporarily limit range to 70–100% 2021-03-26 11:07:45 +01:00
Kshitij Gupta 4e92178045 Lawnchair: Drawer Opacity 2021-03-26 02:16:13 +05:30
Kshitij Gupta 480ac2c76b Lawnchair: Fix icon size and label size reload, implement launcher restart 2021-03-22 19:10:41 +05:30
Patryk Michalik fedd0906b2 Correct application ID to app.lawnchair 2021-03-21 18:22:24 +01:00
Patryk Michalik ff5ae4ba57 Change application ID to com.lawnchair 2021-03-21 18:18:42 +01:00
Kshitij Gupta bfce6ad32b Lawnchair: Port Lawnfeed/Bridge to A11 2021-03-19 03:41:31 +05:30
Kshitij Gupta aa7512c273 Merge tag 'android-11.0.0_r33' of https://android.googlesource.com/platform/packages/apps/Launcher3 into HEAD
Android 11.0.0 Release 33 (RQ2A.210305.007)
2021-03-18 23:07:37 +05:30
Kshitij Gupta c930b5f9fb Launcher3: Build in Lawnchair, make "lawn" app flavor
- Also add placeholder SettingsActivity
2021-02-28 23:23:06 +05:30
Kshitij Gupta 8627ab7b3d Lawnchair: Simplify structure, update app name 2021-02-28 21:17:06 +05:30
Kshitij Gupta 87a0000d52 DeviceConfig: Check for permission before bailing 2021-02-28 03:08:42 +05:30
Kshitij Gupta 16275e5c04 Launcher3: Standalone studio build 2021-02-28 02:57:05 +05:30
Winson Chung a18b9f3e42 Merge changes from topic "revert_ui_mode_changes" into rvc-qpr-dev
* changes:
  DO NOT MERGE Revert "Handle uiMode changes"
  DO NOT MERGE Revert "Defer recreation until resumed"
2020-11-10 22:17:52 +00:00
Hyunyoung Song 64340cca97 [DO NOT MERGE] Add WW log for noti shade swipe down from home.
Bug: 171973663
Change-Id: I1e8ff20c62d4f91a05cb1cfc0337e351f2bc8885
(cherry picked from commit a87f99a35a)
2020-11-05 08:55:40 +00:00
Winson Chung 4b4341d3a7 DO NOT MERGE Revert "Handle uiMode changes"
Bug: 171707437
Test: Repro steps on bug

This reverts commit 0ad7b172e6.

Change-Id: If30cbb6c155e879dc8307a0a4a06dfb548b389a1
2020-10-28 19:18:03 -07:00
Tony Wickham d007cd5d55 End the attaching animation early when we settle on the end target
The attaching animation can take longer than the transition to recents
when you let go, and the ADJACENT_PAGE_OFFSET calculation is different
when there's a running task vs not. So after the transition to recents
ended, the calculation of the still playing attaching animation would
change, causing the jump you see in the bug. Now we make sure to end
the attaching animation if it's still running when we settle on an
end target to avoid this issue.

Fixes: 168563692
Change-Id: I3f37aecf9c93f2ec63dbdce561e7f5ba11be89cc
Merged-In: I3f37aecf9c93f2ec63dbdce561e7f5ba11be89cc
(cherry picked from commit 1cc12ebc12)
(cherry picked from commit fd54a8e84a)
2020-10-23 22:41:55 +00:00
Hyunyoung Song 743fe26951 [DO NOT MERGE] Add component name to launcher home and overview gestures
Bug: 168805198

Change-Id: Idcc7d00b0f23c2a0f9be6f0ab2600278e18cc1a3
(cherry picked from commit e6477328aa)
2020-10-01 16:56:35 +00:00
TreeHugger Robot fd2f276d4e Merge "[DO NOT MERGE] Make overview to home translate faster" into rvc-qpr-dev 2020-09-24 22:45:02 +00:00
Tony Wickham 0a22d107f6 [DO NOT MERGE] Make overview to home translate faster
Fixes: 169052350
Change-Id: Ia6f21f479498927a5561819fcc256b698acbd095
2020-09-24 19:14:56 +00:00
Tony Wickham a5dae88b71 [DO NOT MERGE] Remove CurveProperties#pageParentScale
Test: Set TaskView#EDGE_SCALE_DOWN_FACTOR = 0.2f, then swipe
down on the centermost TaskView; ensure it fills the screen.
Alternatively, touch and hold the nav bar and ensure there is
no jump in scale on the app window.

Fixes: 169259407
Change-Id: Ib3cfba6ebafbcb90de9c6b1ab79f53605d995321
(cherry picked from commit 82ff64530e)
2020-09-24 17:31:31 +00:00
Sunny Goyal 41874d1e02 [DO NOT MERGE] Snapshot strings from ub-branch to platform
Bug: 159176821
Change-Id: Ia079de403bed5ee7501a2d70f40989dcfafbddc7
2020-09-23 14:51:35 -07:00
Winson Chung f5e8ecda30 DO NOT MERGE Only check activity rotation allowed when considering menu layout
- The canRecentsActivityRotate() also checks whether system rotation
  is enabled which prevents us from using the right layout orientation
  when home rotation is enabled while system rotation is disabled.

Bug: 168278832
Test: Tested menu visibility in combination of
      Auto rotate setting x Home rotation setting X Device orientation
Change-Id: If74a38b1ec51abd2ea7f3ba3de23f0b2c4cab0ab
Merged-In: If74a38b1ec51abd2ea7f3ba3de23f0b2c4cab0ab
(cherry picked from commit 9cd3740fe7)
2020-09-22 19:16:30 +00:00
vadimt 01a51f5bb9 Merging from ub-launcher3-rvc-qpr-dev @ build 6809704
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-qpr-dev_rvc-qpr-dev_6809704.html

Change-Id: I870f8ec233dfae0c9c857ebb050217879f83ba65
Merged-In: Ib9d52ba333f2982d2420cab42a0935e8e8a303b3
2020-09-03 02:59:35 +00:00
TreeHugger Robot 39c79929d1 Merge "Make modal based UI changes in TaskView only if modalness changes." into ub-launcher3-rvc-qpr-dev 2020-08-28 23:08:11 +00:00
Sreyas 3aca92104f Make modal based UI changes in TaskView only if modalness changes.
Fixes issue with jittery displaying of suggestion chip, when entering overview.
Tested:Manual

Change-Id: Id37fcc67840402f1f66d7646cd562c282a19e312
2020-08-28 15:13:25 -07:00
TreeHugger Robot 7c39afeccc Merge "Scale down chip proportional to TaskView becoming fullscreen." into ub-launcher3-rvc-qpr-dev 2020-08-28 22:10:57 +00:00
TreeHugger Robot 7d7b471a6c Merge "Implementing TouchDelegate to make full chip clickable." into ub-launcher3-rvc-qpr-dev 2020-08-28 17:53:54 +00:00
Sreyas 8a622edb78 Scale down chip proportional to TaskView becoming fullscreen.
Tested: Manual
Change-Id: I09c80b28cb01fb4873efffa8d4856b63af32493f
2020-08-28 10:20:05 -07:00
Sreyas fee2b25b9c Implementing TouchDelegate to make full chip clickable.
Bug: 166376182
Tested: Manual
Change-Id: I36b2559908fbf7ab6a863fb6e550a88b5374aefa
2020-08-28 10:10:30 -07:00
TreeHugger Robot 01a5b52b42 Merge "Fix a couple issues with overview to home transition" into ub-launcher3-rvc-qpr-dev 2020-08-26 21:54:08 +00:00
Tony Wickham 5c460a4663 Fix a couple issues with overview to home transition
- In fake portrait, fade out instead of translating offscreen, as
  the orientation doesn't map to where RecentsView actually lives
- From OverviewModalTaskState, start from > 1 scale, and use
  OverviewToHomeAnim (to ensure RecentsView doesn't fade out etc)
  - To keep parameter list sane, added RecentsParams to
    AnimatorControllerWithResistance which has the new startScale
    (set to current scale for modal state) and renames the old
    RecentsParams to RecentsResistanceParams. Sorry if that's
    confusing.

Bug: 144170434
Change-Id: Id36ebde440b398159cef50d95822627fca761527
Merged-In: I437f0d18cad4c94feea25954aed3390acedcaed5
2020-08-24 23:29:14 +00:00
Tony Wickham 0486a03832 Merging from ub-launcher3-rvc-qpr-dev @ build 6777894
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-qpr-dev_rvc-qpr-dev_6777894.html

Change-Id: I4a4a422b2f70c2107c21161c662a4aac3fee7903
Merged-In: I0bb722c8f29e91cb382337f8b11bcf43d711949b
2020-08-21 19:07:27 +00:00
TreeHugger Robot ba9717199f Merge "Allow swipe up to go home from overivew during task dismiss animation" into ub-launcher3-rvc-qpr-dev 2020-08-20 02:59:58 +00:00
TreeHugger Robot 93f595fd5a Merge "Set new scrimMultiplier instead of scrimProgress for overview -> home" into ub-launcher3-rvc-qpr-dev 2020-08-20 02:59:26 +00:00
Tony Wickham ff20eae383 Allow swipe up to go home from overivew during task dismiss animation
Test: go to overview, dismiss a task, swipe up to go home during the
transition (easier to try with animation duraation scaled up)

Bug: 144170434
Change-Id: I28b846b43260179aeac877351a7069743f66f3ea
Merged-In: I28b846b43260179aeac877351a7069743f66f3ea
2020-08-20 02:50:36 +00:00
Tony Wickham 375c602fc0 Set new scrimMultiplier instead of scrimProgress for overview -> home
Animating this new property allows us to adjust the scrim without
competing with other state animations that could be setting the
scrim progress. Also reset scrimMultipler = 1 for state transitions.

Test: Swipe from home to overview, then during that transition swipe
from overview to home; when the former transition ends while the
second is still in progress, ensure scrim value doesn't jump

Bug: 144170434
Change-Id: I44b57ced1c6902e558fe1818bcbf11ceb4ff2f6f
Merged-In: I44b57ced1c6902e558fe1818bcbf11ceb4ff2f6f
2020-08-20 02:49:30 +00:00