Commit Graph

30730 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Jon Miranda
25178c55b2 Fix bug where dragview gets stuck on screen. am: b453ef7621
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13407365

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I636aef61403f44fd27898d74d2b857fd14f9ffc2
2021-01-26 18:41:40 +00:00
Jon Miranda
b453ef7621 Fix bug where dragview gets stuck on screen.
* Since the BubbleTextViews views do not have a listener, the long press
  was still getting triggered even though it was in a pressed state.
* We only trigger long press if the view is not pressed or if there is no listener.
* A listener is only added for widgets, and for long press wiidgets are not
  pressed state.

Bug: 162636845
Test: manual test, repo steps in bug
Change-Id: Ia9df12cf31a0844403d69ddacebf2bdbc5c59d3b
(cherry picked from commit 6fa63473e1)
2021-01-26 15:35:35 +00:00
Alex Chau
417bd72b71 Revert "Use Diplay.getMetrics in DisplayController"
This reverts commit acfac6187d.

Reason for revert: b/176656141

Bug: 176656141
Change-Id: Ic28e50779811d18450000efc2cdfd8184a931bbb
2021-01-26 15:23:20 +00:00
Samuel Fufa
e9d970106c Merge "Consolidate Search result UIs" 2021-01-25 22:33:42 +00:00
TreeHugger Robot
5bcf86cfc2 Merge "Fix bug where dragview gets stuck on screen." 2021-01-25 22:21:30 +00:00
Samuel Fufa
062a8fd979 Introduce feature education for AllApps Search
Preview: https://drive.google.com/file/d/1eXf3K6kFh0bHcYlpwW_voSRjY9RQalJN/view?usp=sharing&resourcekey=0-IABjrtXM5JhHvSf-7yc4tg

Edu can be dismissed permanently by pressing "Got it" button or typing. Swiping down defers edu until next visit to all apps

- Move fallback search to quickstep
Bug: 178100472
Test: Manual

Change-Id: I920aab366330758e81f8b9fa62736abf82fe5cac
2021-01-25 15:17:34 -06:00
Jon Miranda
6fa63473e1 Fix bug where dragview gets stuck on screen.
* Since the BubbleTextViews views do not have a listener, the long press
  was still getting triggered even though it was in a pressed state.
* We only trigger long press if the view is not pressed or if there is no listener.
* A listener is only added for widgets, and for long press wiidgets are not
  pressed state.

Bug: 162636845
Test: manual test, repo steps in bug
Change-Id: Ia9df12cf31a0844403d69ddacebf2bdbc5c59d3b
2021-01-25 15:33:50 -05:00
Samuel Fufa
c282018765 Consolidate Search result UIs
- Allow SearchAction to be represented by SearchResultIcon and SearchResultIconRow
- Fix tap enter to launch regression
- Remove Plugin Pipeline

Bug: 177223401
Test: Manual
Change-Id: Id1d445f6af3f80f840d567165051188c78230ed0
2021-01-25 12:46:05 -06:00
Jonathan Miranda
9acabb8199 Merge "Fix IllegalArgumentException for Float.NaN in ClipIconView." 2021-01-25 18:30:55 +00:00
Tony Wickham
e631b759f9 Merge "Add empty Taskbar views and initial TaskbarController" 2021-01-25 17:27:29 +00:00
Tony Wickham
f26e90aa35 Add empty Taskbar views and initial TaskbarController
Guarded by a FeatureFlag.

Bug: 171917176
Change-Id: I7145c7ae68282bf53552502798fe758c8c0e285d
2021-01-22 15:39:46 -08:00
Jon Miranda
8f09aa3438 Fix IllegalArgumentException for Float.NaN in ClipIconView.
Bug: 173703326
Test: not able to repo bug but this prevents the code from
      executing in bad case
Change-Id: I3701c040e72e6ce37a624b10bb82b2200935e283
2021-01-22 17:49:36 -05:00
Ashwini Oruganti
745272111c Add FLAG_IMMUTABLE to PendingIntent
PIs need a mutability flag on creation. See go/immutable-pendingintents for more context.

Change-Id: I7ac6a76fd501f36adddfd5bf85f0216a37fa9637
Test: TH
2021-01-22 22:17:25 +00:00
Schneider Victor-tulias
9b9919d2be Merge "Add check to prevent adding duplicate pending install icons onto the worksapce." 2021-01-21 18:39:28 +00:00
Schneider Victor-tulias
e824438570 Add check to prevent adding duplicate pending install icons onto the worksapce.
Test: manual

Change-Id: Ifa1bbe39278a7a4f7a385204efcbb815c2a59ca3
2021-01-20 14:48:40 -08:00
Alex Chau
867b62a2d0 Merge "Update RecentsActivityRotation when device rotate" 2021-01-20 22:40:44 +00:00
Alex Chau
df449d71e9 Update RecentsActivityRotation when device rotate
- When rotating device, RecentsOrientedState.setRecentsRotation is called without updating mRecentsActivityRotation, leaving a stale orientation to be used by other components

Bug: 176913754
Change-Id: Ieb7b6cd31a6f77809ac6d222b8d0d68d6015ce01
2021-01-20 20:07:55 +00:00
Alex Chau
47da250137 Merge "Ensure setRequestedOrientation is called when unfolding the device" 2021-01-20 19:58:24 +00:00
TreeHugger Robot
98414351b8 Merge "Do not apply shadows to app window if target is transluscent." 2021-01-20 19:02:16 +00:00
TreeHugger Robot
f56efc0187 Merge "Adding debug tracing for Device.wait" 2021-01-20 18:58:21 +00:00
Vadim Tryshev
9e86e3b89d Merge "Removing automatic failure investigator" 2021-01-20 18:46:42 +00:00
Tony Wickham
9dbcc4b219 [automerger skipped] Separate TaskView translationX into dismiss + offset translations am: 5662a653da am: f677930374 -s ours
am skip reason: skipped by user twickham

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id5b370bfcca6fdafdf0b807b3093a2366da1663e
2021-01-20 18:45:35 +00:00
TreeHugger Robot
c32fa4bce0 Merge "Correctly generating heap dumps for OOP tests" 2021-01-20 18:45:11 +00:00
Jon Miranda
d772198157 Do not apply shadows to app window if target is transluscent.
Bug: 148938447
Test: Open disabled work profile app. Swipe away to close.
Change-Id: I54fabbe06615cf2f492c1a4aa68b597b5d132584
2021-01-20 11:52:50 -05:00
TreeHugger Robot
b0bdd38fe4 Merge "Checking mRecentsAnimationController for null-ness" 2021-01-20 16:29:46 +00:00