Commit Graph

7968 Commits

Author SHA1 Message Date
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 4b46d0a06c Revert to system icons when active icon pack is uninstalled 2021-04-28 15:29:23 +02: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
Suphon Thanakornpakapong 664d443b1a Use correct folder radius for the reveal animation 2021-04-28 10:13:19 +07:00
Patryk Michalik aab6b80fa0 Relicense to and fix compliance with Apache 2.0
[skip ci]
2021-04-24 09:48:35 +02:00
Amogh Lele bf042ed46f Add fuzzy search (#2112) 2021-03-29 22:10:06 +02:00
Patryk Michalik 8c595a68fb Apply icon size settings to folders 2021-03-27 07:32:18 +01:00
Patryk Michalik 86465c05af Merge branch '11-dev' into 11-dev_drawer-opacity 2021-03-26 11:08:54 +01: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 56b91f97a2 Lawnchair: Request the user for QsbWidget create 2021-03-26 01:40:24 +05:30
Patryk Michalik 47a16428d1 Adjust dock padding calculation 2021-03-24 15:53:52 +01:00
Kshitij Gupta 40c324cda4 Lawnchair: Swipe down on Workspace to expand statusbar 2021-03-24 04:03:06 +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 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
Danny Lin 5c5a541625 Launcher3: Fix launcher preview rendering
Launcher preview rendering fails on AOSP Launcher3 because the search
bar (AppsSearchContainerLayout) tries to find BaseDraggingActivity
during inflation, which doesn't exist in the preview hierarchy.

Remove the search bar from the launcher preview layout entirely to fix
the issue. This is actually more consistent with our real launcher
appearance because it doesn't have a search bar to begin with.

Change-Id: Ic549fd9d592bc702e0c12285fb016b908e49d514
2021-03-18 22:32:28 +05:30
Kshitij Gupta fd4d9b3edf Lawnchair: Fix reload of AllApps columns 2021-03-15 17:59:26 +05:30
Kshitij Gupta b9ea94378e Lawnchair: Make the grid actually reload 2021-03-15 17:31:36 +05:30
Patryk Michalik 3fec1d33e5 Finish migrating Settings to Jetpack Compose 2021-03-13 11:18:17 +01:00
Patryk Michalik 2e1b4f1b39 Add option to allow empty home screen pages 2021-03-11 18:59:14 +01:00
Patryk Michalik 121f1d37fe New Settings: Add grid customisation, update icons, and more 2021-03-11 15:14:04 +01:00
Kshitij Gupta c7aedd109c Lawnchair: Allow skipping Adaptive wrap/shrink [2/2] 2021-03-07 22:44:30 +05:30
Kshitij Gupta 3373bcf13b Lawnchair: Customize IDP 2021-03-07 20:20:06 +05:30
Kshitij Gupta 8a3ce672d5 Lawnchair: Add basic preference for picking icon packs 2021-03-02 04:57:44 +05:30
Kshitij Gupta d5583949ab Lawnchair: Initial port for icon pack support [2/2]
- Yes ik the code is a lil ugly, will clean out soon
2021-03-01 22:36:30 +05:30
Kshitij Gupta 16275e5c04 Launcher3: Standalone studio build 2021-02-28 02:57:05 +05:30
Sunny Goyal 980c089d2f [DO NOT MERGE] Keeping Launcher in overview UI if activity is restarting
due to UI mode changes

Test: Verified Launcher behavior locally
Bug: 148988542
Change-Id: Id83e5e0892666af1420e8f8c711b83f1ea355188
(cherry picked from commit 6c0c61acd8)
2020-12-09 23:40:46 +00:00
Samuel Fufa ec5e095430 [DO NOT MERGE] Encode launch location for hotseat items
Bug: 162003157
Test: Manual
Change-Id: I18f8f3f431dbabb3d22898d27d70c8730ad0150f
(cherry picked from commit 9b947993be)
2020-11-23 19:39:00 +00:00
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 272f4541f9 DO NOT MERGE Revert "Defer recreation until resumed"
Bug: 171707437
Test: Repro steps in bug

This reverts commit 3f8d868110.

Change-Id: I909ab701c674fe975982a7de06dc9e89dcd03aea
2020-10-28 19:17:51 -07: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
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
Tracy Zhou e209b03a7f Only load the first page in grid preview
Bug: 160662425
Test: manual (verified correctness)
Merged-In: I9dc3b7d7b84924ffb588470d4b6b20431a62b6cd
Change-Id: I9dc3b7d7b84924ffb588470d4b6b20431a62b6cd
(cherry picked from commit 312cf43863)
2020-09-10 23:53:21 +00:00
TreeHugger Robot 3cdba9d5b5 Merge "Refrain from overwriting shortcut icon with default icon" into rvc-qpr-dev 2020-09-08 22:52:36 +00:00
Pinyao Ting 52dede83f1 Refrain from overwriting shortcut icon with default icon
Invert the condition check in IconCache so that, if a shortcut is
already using a non-default icon, do not replace it with default icon
again.

Bug: 162783875
Test: add weather shortcut, backup, restore, verify its icon is not
replaced by default droid icon

Change-Id: Idaf4ce4afa84d21f7192a2f4ce41a6f8daa8d3f2
(cherry picked from commit 61e8ae1d9d)
2020-09-03 23:37:55 +00:00
Hyunyoung Song c6890f8869 Fix Robolectric test breakage am: 77e29775a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12442805

Change-Id: Ib8711dce31cc2bbb54776939a402440521b09c5f
2020-08-25 18:19:20 +00:00
Hyunyoung Song 77e29775a9 Fix Robolectric test breakage
Bug: 166204002

Change-Id: I9c54c6230756dbb5fe8bdcb37ba51165d20bb815
2020-08-25 00:53:48 -07: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 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
Pinyao Ting 96186aff87 Minimal Phone Mode (part-3)
Introduces a separate database for minimal device mode.

When minimal device mode is enabled/disabled:
1. WellbeingModel receives onChange event from ContentObserver
2. WellbeingModel called DWB's ContentProvider for latest state in
minimal device mode
3. Based on the state, WellbeingModel calls LauncherProvider to put
launcher into normal/minimal mode.
4. When going from normal -> minimal, Launcher switches to a different
database, namely minimal.db, then proceed to database initialization.
5. If the database hasn't been initialized yet, Launcher will call
ContentResolver#openInputStream with following uri:
content://com.google.android.apps.wellbeing.api/launcher_layout
to get the default layout xml.
6. The default layout is then saved in database, and the database is
considered initialized and doesn't need to go through step 5 again in
the future.
7. In case of minimal -> normal, Launcher switches back to its original
database (e.g. launcher.db if the grid size is 5x5), then reload launcher.

Bug: 161462256
Change-Id: I6bafa66440da23281f63454b698ea56b15960022
2020-08-19 14:58:20 -07:00
TreeHugger Robot 6c1a88f172 Merge "Track OverviewToHomeAnim with StateManager" into ub-launcher3-rvc-qpr-dev 2020-08-14 22:45:17 +00:00
Tony Wickham 9dfcc316c1 Track OverviewToHomeAnim with StateManager
This way we mark the the current state as NORMAL at the start of
the animation, and cancel it as part of other state transitions.
This allows us to interact with launcher (e.g. to go to all apps
or pull down the notification shade) during the animation.

Also use OverviewToHomeAnim from RecentsView#startHome() to
ensure the animation is consistent, e.g. doesn't fade out
RecentsView, scrolls to page 1, etc.

Bug: 144170434
Change-Id: I5348565b9e705d8ffba39818dde9efe82b16bb7a
Merged-In: I5348565b9e705d8ffba39818dde9efe82b16bb7a
2020-08-14 22:30:33 +00:00
Zak Cohen 1e414d5005 Overview Actions - enable proactive actions flag.
Bug: 162623012
Test: local
Change-Id: I343ae83601ebdab4dacc9f4611b069f87b5542eb
2020-08-12 16:32:45 -07:00
Tony Wickham 03a4a0cd53 Update overview from home transitions
For both NoButtonNavbarToOverviewTouchController and
NavBarToHomeTouchController:
- Have consistent resistance applied such that RecentsView scales
  down and translates up slightly (but not as much as from an app)
- Have consistent animation to home if you fling to that state
  rather than stay in overview. This is handled by a new class,
  OverviewToHomeAnim, which consolidates logic from NBTHTC and
  overrides some interpolators such that RecentsView doesn't fade
  out or translate downwards during the animation (it just slides
  off the screen while the home animation plays).

Also make overview actions not clickable when alpha == 0, so that
you can tap the hotseat/qsb during the transition from home to
overview.

Bug: 144170434
Change-Id: Ic291f285ff2f63c477633c48d4fadb23cf70c28a
2020-08-10 13:15:23 -07:00
Becky Qiu 14e03d1c4d [Overview Actions] Add a logging event for tapping images in select mode.
Event IDs were generated by command line on my workstation by uieventscli.
Manually added to StatsLogManager.

Test: local
Bug: 161273376
Change-Id: Iee36c450ddb207f87653a8da2355c720369caa34
2020-08-07 15:07:04 -07:00
Tony Wickham ce8b2b5180 Add translation component to swipe up resistance
Now recents view follows your finger all the way to the top of the
screen. Specifically, your finger tracks the bottom of the window
until resistance starts (when RecentsView is at 75% scale), then
we add translation to compensate for the slower rate of scaling
down, such that your finger slips to the top of the window by the
time it reaches the top of the screen.

Also reset this translation back to 0 in the state handlers.

Bug: 149934536
Fixes: 158701272
Change-Id: Iaee58da758d422f0173c29d002f5c451ce0c1809
2020-08-07 12:32:50 -07:00