Commit Graph

49925 Commits

Author SHA1 Message Date
kholoud mohamed af6641414c RESTRICT AUTOMERGE Fix newAPI lint error
Fixes: 225612636
Test: m -j out/soong/.intermediates/packages/apps/Launcher3/Launcher3/android_common/lint/lint-report.txt
Change-Id: Ib7f7df0010702b0f26d99bbd7b27ee38a6ed5e17
2022-03-21 10:50:29 +00:00
Kholoud Mohamed ac0574781c Merge "RESTRICT AUTOMERGE Moved enteprise resource updatability to Launcher3" into tm-dev 2022-03-19 06:30:09 +00:00
Android Build Coastguard Worker d8075eaa62 Snap for 8320190 from 2b27eb06f3 to sc-qpr3-release
Change-Id: Iee257bb98d80e79c4b993264fc67ec6706a67bf0
2022-03-19 01:07:51 +00:00
Bill Yi 84508ee1ed Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-03-19 00:36:09 +00:00
TreeHugger Robot 0a9d1226a6 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-03-19 00:35:45 +00:00
Jeremy Sim bf6f171f84 Fix issue with split thumbnails overflowing during rotation
Fixes a set of issues in Overview where you could cause split thumbnails to overflow their contents into each other by rotating the phone in certain ways.

The issue occurred because StagedSplitBounds objects have their height and width assigned differently depending on if they were created while the phone was in portrait or landscape.

Fixed by adding a conditional check in PortraitPagedViewHandler#setSplitTaskSwipeRect and LandscapePagedViewHandler#setSplitTaskSwipeRect.

Fixes: 218784856
Fixes: 218779313

Test: Manual on local devices
Change-Id: I04b4f4344250da34616ab1744af22fa41b9aba9b
(cherry picked from commit 1d6b7f2abf)
2022-03-19 00:10:54 +00:00
Jeremy Sim b4b79142d8 Fix UI overlap when rotating in split select mode
Fixes an issue where you could trigger a UI overlap by rotating the phone during split select. The issue occurred because devices with insets were calling TaskView#resetViewTransforms during rotation, and not accounting for the fact that an extra transform was applied for split staging.

Fixes: 220998096
Test: Manual test on inset and non-inset devices
Change-Id: I2d6c969231127aa16c9eae39cf69e08ceb96c44b
(cherry picked from commit 51bfabf8b7)
2022-03-19 00:10:44 +00:00
Jeremy Sim b42345273c Fix paired icon placement in landscape/seascape
In grouped task view, paired icons will now align better with task thumbnails.

Fixes: 218783211

Test: Extensive manual testing on local device(s).
Change-Id: I372d2ee90302a8d96ace048ff4f82126d9b2b363
(cherry picked from commit d6826c74a4)
2022-03-19 00:10:16 +00:00
Jeremy Sim 3b687a5092 Fix small positioning bug with DWB banner in landscape
The DWB banner is now positioned correctly when the task thumbnail is set as a secondary split view.

Fixes: 220637396
Test: Manual testing on local Pixel 6
Change-Id: I3bcb0eb09d2a607b2891bc9f63f3a0b03668f48e
(cherry picked from commit 87fad7b984)
2022-03-19 00:09:22 +00:00
Jeremy Sim 64212c5439 Fix crash condition by adding a null check in DigitalWellBeingToast
Fixes a crash condition where TaskView#getRecentsView() could return null when being called from DigitalWellBeingToast#setBanner(), resulting in a crash.

Fixes: 217671133

Test: Manual
Change-Id: I964384d97d26336e9a5e8e4c025f66ab78c63e0a
2022-03-18 16:55:17 -07:00
Brian Isganitis d478f555cb Have taskbar all apps extend ActivityAllAppsContainerView.
This step is necessary to have taskbar support search in all apps.
Search is not ready yet, so a fallback search manager is included.

Test: Manual
Bug: 216683257
Change-Id: Id118388bc4baae4b63ef205295caf46cbd541bc8
2022-03-18 15:39:54 -07:00
Brandon Dayauon 85a6bab0dc Change Home screen to 'home screen' when it's in middle of a sentence
Test: Manual - Tested on local pixel device
Bug: 224967365
Change-Id: I37365167b0be6d654735d46c4a070b926e828f8e
2022-03-18 14:59:31 -07:00
Brian Isganitis 8ef29784e1 Fix Proto compilation on M1 Macs
The Maven artifact upstream doesn't have an ARM version of Proto
compiler. Since updating the artifact breaks the compilation, this
explicitly requests x86 protoc binary which is then run via Rosetta.
Build completes successfully.

Change-Id: Ia13f28a6f019ad53e88f6dd4a8788ab7ec1ebead
Test: Manual
2022-03-18 14:20:48 -07:00
chaviw 29b8135260 Replace consumeNextDraw with SurfaceSyncer
Test: Builds
Bug: 200284684
Change-Id: I46e9cd89fd6b7c767bb867205400197b305e86a8
2022-03-18 16:20:42 -05:00
TreeHugger Robot f1543cb520 Merge "Small improvement for ag/17016891 (unstash taskbar input area size)" into tm-dev 2022-03-18 18:38:42 +00:00
Alex Chau d826f04b93 Merge "Use correct config.smallestScreenWidthDp when creating Resource in DeviceProfile" into tm-dev 2022-03-18 17:51:10 +00:00
Schneider Victor-tulias 90ba15622a Reset the home settings activity when launching it
Opening the home settings shouldn't open to a previous state. Updating home setting intents to clear previous tasks.

Bug: 187447602
Test: manual
Change-Id: I40fa408cdade5003c91136fe54f054e7f0ae07b2
2022-03-18 17:50:35 +00:00
Schneider Victor-tulias c8c761621b Fix overriden deep shortcut titles and icons
Bulk Icon loading causes all icons that share a component name to share a title and bitmap. This didn't work for deep shortcuts since they were already being loaded individually. Added a check to filter out deep shortcuts.

Note: If future traces show that individual deep shortcut loading is taking too long, then deep shortcut loading can be refactored into bulk icon loading.

Fixes: 224891898
Test: manual
Change-Id: I112fcd4a889071e5b523d56731bad8ecdee08abc
2022-03-18 17:50:22 +00:00
Pat Manning 1acf2b18af Adjust edit state drop targets, workspace scaling, and margins per device type and orientation.
Bug: 202971709
Test: manual
Change-Id: Id1817cd3c7e7bfa5b0aa8aa20565b791ad871f64
2022-03-18 17:43:28 +00:00
Brian Isganitis 5eb66d8abb Refactor ActivityAllAppsContainerView to depend on ActivityContext.
All of the all apps search support is in this class which is also being
refactored to depend on ActivityContext. At the end of this refactor,
this class can be merged with BaseAllAppsContainerView.

Test: Manual
Bug: 216683257
Change-Id: I8cbf21c8d9ce97cc60e9846cfe8c2a7bcb800a01
2022-03-18 10:36:15 -07:00
Brian Isganitis f477ec2032 Refactor allapps.search package to depend on ActivityContext.
Test: Manual
Bug: 216683257
Change-Id: I6230498b24380b37531f8a83db1dc768270e708a
2022-03-18 10:35:10 -07:00
Jon Miranda f6780f66c3 Allow depth animation when user swipes back to home.
Bug: 221196062
Test: open app, swipe back to home, ensure blurs
Change-Id: I9faff4e41c2e8d22df72e41c7753e2090fa0973d
2022-03-18 09:58:55 -07:00
Brian Isganitis 8198cb6f3f Merge "Move activity starting logic into new ActivityContext extension." into tm-dev 2022-03-18 16:43:48 +00:00
TreeHugger Robot 2c608fd7d0 Merge "Fix splitPrimaryScrollOffset in RTL" into tm-dev 2022-03-18 15:43:38 +00:00
Alex Chau a6907dc8c9 Use correct config.smallestScreenWidthDp when creating Resource in DeviceProfile
- This is a regression from ag/17070486 when tested, likely because DeviceProfiles are no longer re-created when changing display sizes, so correct values need to be calculated on the starting state

Bug: 221961069
Test: verify smallestWidth specific resource on changing display sizes
Change-Id: I1539bad4b35b36f0056d59307ab5fbec23a71f49
2022-03-18 15:24:07 +00:00
Thales Lima 44cc3a2e21 Add more border space options
This give options to landscape layouts to have different border options

Bug: 222109350
Test: manual and HSV
Change-Id: If823dd09c945438f77e57ff80a8a0c4fc0b4c8a6
2022-03-18 14:28:24 +00:00
TreeHugger Robot 8233d92274 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev am: 2b27eb06f3 -s ours am: 3f7bd21989 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I764a19e39b4ee0ac99deade9995f75ee880061d5
2022-03-18 02:39:17 +00:00
TreeHugger Robot 155d8320e0 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev am: 9a682982a0 -s ours am: eaccabb042 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I0cbc0b2daaffa76b74683a4defbdecd74687dc76
2022-03-18 02:39:06 +00:00
TreeHugger Robot 42b9f2eb9f Merge changes from topic "presubmit-am-03e6d19cbcaa449ab324b779508f09b0" into sc-v2-dev-plus-aosp am: 2260059974
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17230759

Change-Id: I0a80543c89572479e780992b7fe1b7fcc8cbdbcd
2022-03-18 02:37:59 +00:00
Bill Yi 4653027117 [automerger skipped] [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 7933df7269 am: 8694741ed6 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I12eb2419d4d70fbbcda13bfb90ada1b8050ad6c0
2022-03-18 02:37:55 +00:00
Bill Yi 1cdb10079d [automerger skipped] [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 487a62c361 am: 4f56e1893f -s ours
am skip reason: subject contains skip directive

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

Change-Id: I5b6e18b3e4747eaf8d2b457a9de2b814cd911a15
2022-03-18 02:36:05 +00:00
TreeHugger Robot 3f7bd21989 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev am: 2b27eb06f3 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I6aba88ba68285e73cdcde674d24108dfa50350e8
2022-03-18 02:32:54 +00:00
TreeHugger Robot eaccabb042 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev am: 9a682982a0 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I3dd0f4f22cc48ec0e509b70ca209cf1276b167f1
2022-03-18 02:31:20 +00:00
TreeHugger Robot 2b27eb06f3 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-03-18 02:11:43 +00:00
TreeHugger Robot 2260059974 Merge changes from topic "presubmit-am-03e6d19cbcaa449ab324b779508f09b0" into sc-v2-dev-plus-aosp
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 7933df7269
  Import translations. DO NOT MERGE ANYWHERE
2022-03-18 02:11:43 +00:00
TreeHugger Robot 9a682982a0 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-03-18 02:10:33 +00:00
TreeHugger Robot f770ac8f40 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-03-18 02:07:32 +00:00
Vinit Nayak 38397e46cf Limit the number of commands in OverviewCommandHelper
* Rapidly tapping recents button in 3 button nav
puts launcher in a strange state.
Reproing and understanding that state is complex
since so many state transitions are rapidly happening.
* Easier to limit the number of commands a user
will perform for valid use-cases.

Fixes: 207680265
Test: Rapidly pressing recents when unfolded
doesn't show live tile task on workspace.

Change-Id: I7db849e83c2cafc37a419e189479283f2057bde6
2022-03-17 16:26:56 -07:00
Vinit Nayak bacd5e1d21 Use ComponentCallbacks to recreate on fold/unfold
* DisplayController callbacks were sometimes being
called too soon and providing stale window bounds,
which led to the incorrect DeviceProfile being used.
Switched to ComponentCallbacks on the window to get
the most up-to-date callbacks.
* Sadly, for navigation mode changes, ComponentCallbacks
get fired too soon and have a stale navigation mode
so we continue to rely on DisplayController for that
change for now.

Fixes: 219958843
Test: Tested folding/unfolding, no taskbar appears when
it shouldn't.
Tested with changing display/font size as well as
nav mode changes

Change-Id: I1b398934c0ea49f69bad19b13977b7b0906f3190
2022-03-17 12:03:14 -07:00
Alex Chau 8cee1ebed0 Fix splitPrimaryScrollOffset in RTL
Fix: 225165124
Test: split select in RTL and non-RTL, check min/max scroll
Change-Id: I5fb13e39560d9dceb4a53c9c79a355f72faf3dba
2022-03-17 14:55:14 +00:00
Thales Lima 2903a624ce Correct inline qsb for foldables
Fixes 223565967
Test: manual and HSV

Change-Id: I40ef17142f90a8b29cdec44a36249eb2b800734a
2022-03-17 13:52:19 +00:00
Alex Chau 2e48760e97 Update overview grid icon sizes and paddings
- Introduced additional page spacign for clear all button to match mocks

Fix: 222664142
Test: Quick switch to last task and immediately enter overview
Test: Dismiss last task in overview grid
Change-Id: I4d2f93d843c50b10051f3fb17027cd06e86707e1
2022-03-17 13:44:21 +00:00
Becky Qiu 025bf08e2f Merge "[Avocado] Use device config for arm2 flags instead." into tm-dev 2022-03-17 06:39:54 +00:00
Bill Yi 0b0442f87e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I838e87377e310d791b401ebbc636587ed61e1d72
2022-03-17 03:03:11 +00:00
Bill Yi b4479127a7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I453c0760c0bd69f5f758b6223b9cbae3c2ec2771
2022-03-17 03:01:56 +00:00
Bill Yi 496bab5d60 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifb61dcd706a3df8f2c075555bd915294f4a7ed85
2022-03-17 03:00:54 +00:00
Bill Yi 8694741ed6 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 7933df7269
Blank merge reason: commit message contains skip directive

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

Change-Id: I8876fb1bee4d42222d8ca79ef27f0ec754dbf60f
2022-03-17 02:59:52 +00:00
Bill Yi 7933df7269 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I480f37dd715c29100722f29e601013255513fb28
2022-03-17 02:59:43 +00:00
Bill Yi 4f56e1893f [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 487a62c361
Blank merge reason: commit message contains skip directive

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

Change-Id: Ied8dee7b48db9dc06cbe9410b5c981943a4b9890
2022-03-17 02:59:14 +00:00
Bill Yi 487a62c361 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I25ea0d6596cffa1269137572a2fe565da433926b
2022-03-17 02:59:04 +00:00