Commit Graph

30756 Commits

Author SHA1 Message Date
Schneider Victor-tulias
2e292b6343 Update PreloadIconDrawable colors when an app is not startable.
Updated the progress bar and progress track colors when the app is not startable to increase contrast.

Demo: https://drive.google.com/file/d/1iHYBeHgWsItY6edO3NT1RYuXjdKNlEKH/view?usp=sharing

Test: manual

Bug: 171005849

Change-Id: I97bc4e3299108b1e8ef47b498fb3431293f57ad2
2021-02-02 21:30:05 +00:00
Schneider Victor-tulias
5f7f4cb35d State download information in content description whether or not there was an update.
Talkback wasn't announcing the incremental download/install progress if the progress wasn't updated. Updated BubbleTextView to update the content description with the incremental download/install info if the progress bar should be shown.

Fixes: 149444435

Test: manual
Change-Id: I3efe6e31cec389da4119a2179a341aedd074a0b7
2021-02-01 19:01:11 +00:00
Ice Chang
b4ed522ee1 [automerger skipped] Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-qpr-dev-plus-aosp am: e8cc8d5398 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13400935

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2bb104ac82c4b500ee5f65cf637c593a02b79613
2021-02-01 04:11:29 +00:00
Ice Chang
e8cc8d5398 Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-qpr-dev-plus-aosp 2021-02-01 03:31:11 +00:00
TreeHugger Robot
80466c081a Merge "Support people search results" into sc-dev 2021-01-29 23:47:00 +00:00
Tony Wickham
6d46fff269 Merge "Animate taskbar background alpha and visibility alpha" into sc-dev 2021-01-29 23:03:07 +00:00
Samuel Fufa
1ab83de48e Support people search results
+ Introduce temporary workaround icon loading with URLConnection for play results

Manual: go/search-action-icon

Bug: 177223401
Test: Manual
Change-Id: I3b597faaad38e8cd1419065b80b359720baf52b0
2021-01-29 15:48:08 -06:00
Sunny Goyal
7582ed61eb Merge "Adding quickstep specific permissions to Launcher" into sc-dev 2021-01-29 21:42:40 +00:00
Tony Wickham
d683d98b34 Animate taskbar background alpha and visibility alpha
Setup codepath to animate the Taskbar when going to and from Launcher,
primarily by listening for pause/resume signals but also hints from
gesture nav and AppToOverviewAnimationProvider.

Additionally, add TaskbarStateHandler to listen for Launcher state
changes if Taskbar is enabled. Combined, the end behavior is:

- Background alpha is 0 when Launcher is resumed, and 1 when Launcher
  is paused (we can make this animation more interesting later).
- Taskbar is always visible when Launcher is paused, otherwise its
  visibility is determined by multiple factors: LauncherState and
  whether the IME is showing.

Bug: 171917176
Change-Id: I7856fc979931c9d12d714dee11d179fd1b5a6968
2021-01-29 21:22:00 +00:00
Darryl Johnson
d462965698 Merge "Revert "Support people search results"" into sc-dev 2021-01-29 21:02:07 +00:00
Darryl Johnson
170a6b7b98 Revert "Support people search results"
This reverts commit f28db55c96.

Reason for revert: Possible cause of b/178836393

Change-Id: I0e787f02377a5b8fa723816978c61927af67665a
2021-01-29 20:51:38 +00:00
Evan Rosky
efae829aa5 Merge "Map shell transition to recents animation" into sc-dev 2021-01-29 20:47:44 +00:00
Samuel Fufa
fe5e82dabc Merge "Support people search results" into sc-dev 2021-01-29 20:01:31 +00:00
Samuel Fufa
f28db55c96 Support people search results
+ Introduce temporary workaround icon loading with URLConnection for play results

Manual: go/search-action-icon

Bug: 177223401
Test: Manual
Change-Id: Ie8e7963447640d98abb9830ec05f26b28ec58345
2021-01-29 12:49:12 -06:00
TreeHugger Robot
26801f802e Merge "Fix incorrect launcher loading." into sc-dev 2021-01-29 18:13:02 +00:00
Jonathan Miranda
0225efac15 Merge "Update FloatingIconView to display PreloadIconDrawables during swipe home animations." into sc-dev 2021-01-29 13:48:26 +00:00
TreeHugger Robot
83cdd1e857 Merge "Fix launcher flicker when unlocking on seascape." into sc-dev 2021-01-29 02:55:49 +00:00
TreeHugger Robot
6bdd00fa25 Merge "Check whether the running task view is non null before setting it to be not clickable for live tile" into sc-dev 2021-01-29 02:21:57 +00:00
TreeHugger Robot
e3884455fc Merge "Make Thumbnail search result launch intents" into sc-dev 2021-01-29 01:37:48 +00:00
Schneider Victor-tulias
954bb63899 Fix launcher flicker when unlocking on seascape.
Test: manual

Fixes: 160544577

Launcher flickers if it is locked on portrait, then unlocked on seascape. DisplayController.Info was consistenly being updated late causing launcher to unlock in lanscape then switching to seascape with enough frames in-between for the user to notice. Updated DisplayController to properly update its rotation info and updated DeviceProfile to force an info update when checking if the device is in seascape orientation.

demo: https://drive.google.com/file/d/1JBCvK3brLwOSTC4k56GSxeYozl5x0k7X/view?usp=sharing
Change-Id: Idce139f0e16cb686684c0d3a460c4ec9e5ae466a
2021-01-29 01:02:21 +00:00
Schneider Victor-tulias
b40b98db3a Update FloatingIconView to display PreloadIconDrawables during swipe home animations.
Swiping up to go home on an app that is downloading incrementally would cause a jittery animation. Updated FloatingIconView to animate directly to a PreloadIconDrawable.

Demo: https://drive.google.com/file/d/1ddr8OGR4c1ZneyQ0VkkAAxGpwNcP8Wyn/view?usp=sharing

Fixes: 177685929

Test: manual
Change-Id: I4cd2daa18f6d3fed42a9b666063e0b1c1c46e5d9
(cherry picked from commit b8cab8d878)
2021-01-29 01:00:07 +00:00
Tracy Zhou
d9b6d6a86f Check whether the running task view is non null before setting it to be not clickable for live tile
Fixes: 178746755
Test: N/A
Change-Id: Ia8d8bc48a31e4d1babcb948bb27717d14cdb1247
2021-01-28 16:19:25 -08:00
TreeHugger Robot
14faee73e7 Merge "Enabling plugins on Launcher debug builds" into sc-dev 2021-01-28 22:37:06 +00:00
Hyunyoung Song
564ae64e04 Merge "Fix persistent device search edu" into sc-dev 2021-01-28 22:24:47 +00:00
Schneider Victor-tulias
78fb71458f Fix incorrect launcher loading.
Apps that were installed and downloading incrementally would be shown as fully downloaded on reboot. Updated LoaderTask and AppInfo.updateRuntimeFlagsForActivityTarget to account for this.

Fixes: 178528867

Test: manual with hardcoded values

Change-Id: I088e43ae886b4157bad9f4fa8d40373cf7f8235a
(cherry picked from commit 6d0fec8ac7)
2021-01-28 22:21:08 +00:00
TreeHugger Robot
6a53655df5 Merge "Refactoring startShareActivity to allow crop to be passed in." into sc-dev 2021-01-28 19:28:14 +00:00
TreeHugger Robot
61096e9ba6 Merge "Skipping swipe metrics if recents view doesn't exist" into sc-dev 2021-01-28 18:51:58 +00:00
[1;3C
f19a809f72 Map shell transition to recents animation
This hooks up the essential start/finish. One thing to note
is that it uses the normal startActivity rather than a special
startRecents call for shell transitions.

Bug: 162503077
Test: Enable shell transit. Open an app, use gesture to open
      recents.
Change-Id: Ia51fa8baeb43bf3fa768b25a840b629ec94e16a1
2021-01-28 18:20:36 +00:00
TreeHugger Robot
7e27c18755 Merge "Updating ItemInfoMatcher to work with java streams" into sc-dev 2021-01-28 18:06:38 +00:00
Samuel Fufa
7c1e37cce1 Migrate Widgets to new Search API
Test: Manual

Bug: 168321831
Bug: 177223401
Change-Id: Ide276002a47f2345fbe535adbcb3acdc2fbc1233
2021-01-28 06:15:47 -06:00
Hyunyoung Song
eca678835a Make Thumbnail search result launch intents
Bug: 178454668
Test: Manual
Change-Id: If82724d9ddedce205b2f754023dd989d20f49eab
2021-01-28 02:47:12 -08:00
Hyunyoung Song
f1bcf7a4dd Turn ENABLE_DEVICE_SEARCH to DeviceConfig flag
Change-Id: I6e161bf36b315613bd2f13886cf4ef50470469b0
(cherry picked from commit 650fe52313)
2021-01-28 09:57:04 +00:00
Tracy Zhou
3159909d12 Fix missing grid for devices that upgrade from R am: a62e49b365 am: 3977aa6014
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13420191

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I42dbaa0ffe135ade9f1c2ade3dbc9a52a9324214
2021-01-28 03:58:23 +00:00
Tracy Zhou
3977aa6014 Fix missing grid for devices that upgrade from R am: a62e49b365
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13420191

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id968c2fe398e1ff8ce8425804c0f7e20fdfd1b28
2021-01-28 03:11:28 +00:00
vadimt
068de1685c Skipping swipe metrics if recents view doesn't exist
This will skip generating metrics for fallback recents,
which is not a big loss

Test: manual
Bug: 177472265
Change-Id: I0e167ddc3276246510ea5a22ba04dfd53a8d4eac
2021-01-27 18:42:21 -08:00
TreeHugger Robot
db46688e65 Merge "Fix missing grid for devices that upgrade from R" into sc-dev 2021-01-28 02:22:12 +00:00
Sreyas
e7915e138d Refactoring startShareActivity to allow crop to be passed in.
This is necessary to start a share activity based on a single image from Launcher.
Bug: 169772466, 169799864

Change-Id: I8a2baaa978a83f289e558dcd5d9be5ca6a164b2f
2021-01-27 23:30:38 +00:00
TreeHugger Robot
fbc987496e Merge "Inherit theme colors on app drawer and folder" into sc-dev 2021-01-27 23:23:41 +00:00
Sunny Goyal
bfc0c38157 Updating ItemInfoMatcher to work with java streams
Adding support for bulk removing items from a folder icon.
This fixes workspace item removal when a folder gets replaced
to an icon during the delete operation.

- Lets say user has a folder with the same app twice.
- User disables that app.
- Launcher removes all shorcuts of that app

However, because we call "replaceFolderWithFinalItem" during
this removal, we end up creating a new shortcut that does
not get tracked by the removal, so the user is left with
an enabled icon of the disabled app.

Bug: 162378169
Test: manual test, repo steps in bug
Change-Id: Iaf6550894c156b3b5ec2a5aa58bab76a4a28819e
2021-01-27 15:19:56 -08:00
TreeHugger Robot
81d20f7678 Merge "Support ACTION/THUMBNAIL/SUGGEST corpus for rendering rendering" into sc-dev 2021-01-27 23:19:46 +00:00
Tracy Zhou
a62e49b365 Fix missing grid for devices that upgrade from R
Fixes: 178435615
Test: TODO
Change-Id: I9894b88485daf5b641b4674a5abff05e0f53138b
2021-01-27 22:21:24 +00:00
Tracy Zhou
0455d146a1 Fix missing grid for devices that upgrade from R
Fixes: 178435615
Test: TODO
Change-Id: I9894b88485daf5b641b4674a5abff05e0f53138b
2021-01-27 22:18:13 +00:00
Samuel Fufa
7690e9460c Fix persistent device search edu
Test: Manual
Bug: 177223401
Change-Id: Ic028c8f0f01db81f650289963c936ef798a14eae
2021-01-27 21:55:29 +00:00
Tracy Zhou
15b0f700fe Temporary fix to disable task#onClickListener during transition to overview
The root cause is InputConsumerProxy not getting events during the transition. Will need to investigate more, but since we dont allow interaction with TaskView during the transition currently, apply this temporary fix to unblock

Bug: 175039524
Test: manual
Change-Id: Ifc3eb0569cf3a60d193e91bf70519a0737afb90a
2021-01-27 19:29:16 +00:00
Hyunyoung Song
7575cca264 Support ACTION/THUMBNAIL/SUGGEST corpus for rendering rendering
Hookup notifyEvent for metrics, on device intelligence.


Bug: 178454668
Bug: 178455221

Test: manual (See attached screenshots in the bug)

Change-Id: I652b4f2b0644a4726ccc3e01ce4c945a719f96a8
Signed-off-by: Hyunyoung Song <hyunyoungs@google.com>
2021-01-27 19:13:09 +00:00
Sunny Goyal
f72c368017 Adding quickstep specific permissions to Launcher
Bug: 177096054
Test: Manual
Change-Id: Ife5d7c8207e70e4b184b18fcfe71548ec9616dd4
2021-01-27 17:21:12 +00:00
Sunny Goyal
311f8badcb Enabling plugins on Launcher debug builds
Test: Verified on device
Change-Id: I1ffeee62ad96b18ee8006349afaf14b067f56a69
2021-01-27 17:17:19 +00:00
Lucas Dupin
29cd327066 Inherit theme colors on app drawer and folder
This way, changes on Theme.DeviceDefault will be reflected on launcher
as well.

Bug: 173561945
Test: visual
Change-Id: I297560253242476f34c47fcd845c44e96873a8b2
(cherry picked from commit fc82c5a920)
2021-01-27 16:24:58 +00:00
Samuel Fufa
f1db62cc98 Merge " Introduce feature education for AllApps Search" 2021-01-26 21:03:31 +00:00
Jon Miranda
f12b9a4b4e Fix bug where dragview gets stuck on screen. am: b453ef7621 am: 25178c55b2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13407365

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id4b6341e88455d52ab3e6caec58b397048822755
2021-01-26 19:23:29 +00:00