Commit Graph

5226 Commits

Author SHA1 Message Date
Ats Jenk
201e4d39c7 Merge "Add icon to desktop tile in overview" into tm-qpr-dev am: 90d0019447
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21359254

Change-Id: I5ac65e5dcac7a7501258b4cf62eac73de0193365
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 22:22:43 +00:00
Ats Jenk
90d0019447 Merge "Add icon to desktop tile in overview" into tm-qpr-dev 2023-02-10 21:47:31 +00:00
Ats Jenk
78b614f555 Add icon to desktop tile in overview
Copied over icon from caption desktop button in WMShell. Temporary icon
for now.
Refactored some logic in TaskView to better support for custom
orientation handling in subclasses. Subclasses can override setting
orientation for icon or thumbnail.

Bug: 267326722
Test: manual, enable desktop windowing proto 2 and go to overview
Change-Id: Id66d48fa52a418a07b954a384b2c3ea22f091b1f
2023-02-10 10:16:31 -08:00
Federico Baron
d36fa5e631 Merge "Implement two pane widget picker" into tm-qpr-dev am: 740541e0a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20508230

Change-Id: Id1c208c28b7f40eeb1b3446c0c4bf569eb791482
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 18:01:28 +00:00
Federico Baron
740541e0a0 Merge "Implement two pane widget picker" into tm-qpr-dev 2023-02-10 17:20:55 +00:00
Federico Baron
4b1a38bb7d Implement two pane widget picker
The widget picker design is currently not optimized for large screen form factor devices.
We resolve that by adding a two pane widget picker like that of the design in go/widget-picker-2023.

Bug: 256684299
Test: Make sure to be on a tablet in landscape mode.
        1.Turn on flag LARGE_SCREEN_WIDGET_PICKER.
        2. Press and hold on an empty spot in workspace until the popup menu appears.
        3. Click widgets.
        4. Notice the new two pane layout
Change-Id: Ia3ea17dc320f72f9bc5dea52399ff51d9161602b
2023-02-09 16:36:45 -08:00
Thales Lima
0ebaf3a46c Merge "Create an XML parser for WorkspaceSpecs" into tm-qpr-dev am: 5d5aad3024
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20643018

Change-Id: I6a3f38e28b5a381bfa2ac42cdeba77c1527fb028
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 12:19:35 +00:00
Thales Lima
1a2d4bd6f4 Create an XML parser for WorkspaceSpecs
Extract DeviceProfileTest to Launcher3 so it can be used in other tests as well, and change name of previous base test to be more descriptive.

Bug: 241386436
Test: WorkspaceSpecsTest
Change-Id: I64613bb5a23c374ed15fb6d936192236a541ab9b
2023-02-08 11:20:14 +00:00
Thales Lima
f0c4b41bf1 Merge "Improvements for All Apps on different display sizes" into tm-qpr-dev am: fcb6a5fc06
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21116563

Change-Id: I560692d70a2dc1c3dad6df6bfc179a04004f398c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-08 10:24:01 +00:00
Thales Lima
fcb6a5fc06 Merge "Improvements for All Apps on different display sizes" into tm-qpr-dev 2023-02-08 10:02:17 +00:00
Sebastián Franco
bd5b114951 Merge "Simulating a split screen CellLayout using one CellLayout" into tm-qpr-dev am: 726e9acea4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21182332

Change-Id: I764dc15f1be7f7e2dd0efce0ef27fc56a3acb7ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-08 01:24:00 +00:00
Sebastián Franco
726e9acea4 Merge "Simulating a split screen CellLayout using one CellLayout" into tm-qpr-dev 2023-02-08 01:04:20 +00:00
Sebastian Franco
09589326db Simulating a split screen CellLayout using one CellLayout
Test: atest ReorderWidget
Fix: 188081026
Change-Id: I8eda5f77c11dc2625ae1f028d07539c28018fb55
2023-02-07 17:03:22 -08:00
Bill Yi
c814e6f803 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib4a13b959985a06f8d178d89d72a7510b6ece5b3
2023-02-05 17:30:21 -08:00
Sihua Ma
34da4b1a94 Merge "Rename the widget suggestion background drawable for outside usage" into tm-qpr-dev am: 7b7130db3d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21227612

Change-Id: I95665fc397d7ad677f8a646d7dd649d3ea307ef2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 21:31:45 +00:00
Sihua Ma
7b7130db3d Merge "Rename the widget suggestion background drawable for outside usage" into tm-qpr-dev 2023-02-03 21:14:04 +00:00
Fengjiang Li
b7a9587380 Merge "[Predictive Back] Hide inactive recycler view when work profile is enabled on tablet" into tm-qpr-dev am: 0510c290a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21135806

Change-Id: I04318412a7f6479e2ab21204f8f004b742d2f454
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 18:15:16 +00:00
Fengjiang Li
0510c290a0 Merge "[Predictive Back] Hide inactive recycler view when work profile is enabled on tablet" into tm-qpr-dev 2023-02-03 18:01:24 +00:00
Vinit Nayak
4e1c1faa37 Merge "Unify split options into single option" into tm-qpr-dev am: 6fa1ab9441
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21074650

Change-Id: I6a21549a20a8f90dcc35ed29285023e844e1e627
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 06:36:19 +00:00
Vinit Nayak
6fa1ab9441 Merge "Unify split options into single option" into tm-qpr-dev 2023-02-03 06:07:41 +00:00
Sihua Ma
13376cf2aa Rename the widget suggestion background drawable for outside usage
Bug: 237343464
Test: N/A
Change-Id: If380684dd28312af4897de301e592224b64f920d
2023-02-02 13:41:44 -08:00
TreeHugger Robot
f114ad9fa4 Merge "Force persistent taskbar all apps icon to light version." into tm-qpr-dev am: 858092151c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21164239

Change-Id: If868dcfa656fcba965f5bd0e9e8fbd30f3c7e951
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-02 03:45:08 +00:00
Vinit Nayak
5a6863f14a Unify split options into single option
* No more split left/right/top, only have
splitscreen and icon shows vertical or horizontal
split windows
* Replace existing split icon for FreeForm

Fixes: 264930810
Test: Tested landscape and portrait, workspace,
overview, allapps

Change-Id: I443f93b6b01760b726bf9f024fb1324fdf0ed03c
2023-02-01 17:27:57 -08:00
Brian Isganitis
748094b185 Force persistent taskbar all apps icon to light version.
Persistent taskbar background is always dark regardless of device theme,
so we should make the icon always light for now.

Test: Manual
Fix: 262837720
Change-Id: I8f66af874e07f68e1943245e9cd49c3b3107915f
2023-02-01 12:07:58 -08:00
Fengjiang Li
a007740815 [Predictive Back] Hide inactive recycler view when work profile is enabled on tablet
This CL will make sure scale animation doesn't reveal the offscreen main/work recycler view on tablet in all apps to home transition

Bug: b/267226558
Test: manual, see before/after video in bug
Change-Id: I9a8add0ac2c902e3f4315de099939f9297f6604a
2023-02-01 10:18:52 -08:00
Thales Lima
e9273ea743 Improvements for All Apps on different display sizes
Bug: 262912817
Test: DeviceProfileAlternativeDisplaysDumpTest
Change-Id: I50e980183b4d5c1a46cca8f1c867b866b9eae4b5
2023-02-01 11:34:12 +00:00
TreeHugger Robot
250c744e82 Merge "Change folder text color to match spec" into tm-qpr-dev am: 3467c51780
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21116565

Change-Id: Ie5dec27e1749e0522845248fd7f54019db800f52
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-30 21:56:28 +00:00
TreeHugger Robot
3467c51780 Merge "Change folder text color to match spec" into tm-qpr-dev 2023-01-30 21:45:13 +00:00
Winson Chung
c41fba5541 Merge "Fix issue with floating rotation button being in the wrong corner (launcher)" into tm-qpr-dev am: 0cf4c14fe0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21118628

Change-Id: I70d1c6aeafe79ae26fae148becb5455d9d7c68fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-30 18:42:12 +00:00
Winson Chung
0cf4c14fe0 Merge "Fix issue with floating rotation button being in the wrong corner (launcher)" into tm-qpr-dev 2023-01-30 17:54:14 +00:00
Andy Wickham
fe0aa2dd8a Merge "Move search bar background protection on top of scrollbar." into tm-qpr-dev am: 275b80e687
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20992186

Change-Id: I0862e0fede906514810a94df65b642ad84143bfe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-28 01:55:32 +00:00
Jagrut Desai
617cb7c4e1 Merge "Add divider line into taskbar." into tm-qpr-dev am: 307b6e2475
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20968623

Change-Id: Iebee8c1a98ff8f5ee1bc60cd72921fe417878dd5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-28 01:54:25 +00:00
Andy Wickham
275b80e687 Merge "Move search bar background protection on top of scrollbar." into tm-qpr-dev 2023-01-28 01:35:24 +00:00
Jagrut Desai
307b6e2475 Merge "Add divider line into taskbar." into tm-qpr-dev 2023-01-28 01:22:03 +00:00
Thales Lima
e31106b036 Merge "Create attr for padding between icon and text in cells" into tm-qpr-dev am: 91b9de1fe2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20980937

Change-Id: I28a303a6de429baa94325f911555a2271d4978ec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-27 12:01:17 +00:00
Thales Lima
91b9de1fe2 Merge "Create attr for padding between icon and text in cells" into tm-qpr-dev 2023-01-27 10:23:30 +00:00
Thales Lima
d852d65693 Create attr for padding between icon and text in cells
Bug: 265210314
Test: DeviceProfileDumpTest
Change-Id: I00af790d0c21c35f1cbce1362e63d3ab8259244a
Merged-In: I00af790d0c21c35f1cbce1362e63d3ab8259244a
2023-01-26 22:50:18 +00:00
Jason Mylen
531b65a51b Merge "Remove competing long haptic when user long presses on widget." into tm-qpr-dev am: 112067efea
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20441481

Change-Id: Ibc7f5d92eeb98d9e948bce9718bc34be25b166b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-26 21:23:41 +00:00
Winson Chung
39def7300e Fix issue with floating rotation button being in the wrong corner (launcher)
- Add option for the rotation button to be positioned to the right
  when in ROTATION_0

Bug: 265197526
Test: atest FloatingRotationButtonPositionCalculatorTest
Test: foldable-folded (floating rot button in sysui, natural rot=rot_0)
      foldable-unfolded (floating rot button in launcher, natural rot=rot_0)
      tablet (floating rot in launcher, natural rot=rot_270)
Change-Id: I856a0be2e10fceb34254cd58ceb58dfa8a1819bd
2023-01-26 20:41:54 +00:00
Federico Baron
79a9bfed79 Change folder text color to match spec
We needed folder text color to use textColorPrimary. With this CL we update it to be that.

Test: Look at folder text color
Fix: 262450499
Change-Id: Icd540c7d3ff4431b4edc72f04ce7f8f14787aa5b
2023-01-26 20:26:29 +00:00
Andy Wickham
03fdeb7684 Move search bar background protection on top of scrollbar.
This way the search bar looks more connected to the keyboard
without the scrollbar showing next to it.

Note: Here the search bar is added on top of all other views
(previously it was inserted above only the header), and the
protection is always added just behind the search bar.

Also adjusts the height of the scrollbar to end above the search
bar when floating search bar is enabled.

Screenshots:
Scrollbar behind search bar: https://drive.google.com/file/d/10ZJ-q5nA9ZBjr7gjoauTDDAbQRUNk7S7/view?usp=share_link&resourcekey=0-pF6eOcuKz2_sCA_eZpa1Sw
New scrollbar height with floating search: https://drive.google.com/file/d/1fVIJjiG7RMme5fBXiSJmxNfOhHJ__Gwj/view?usp=share_link&resourcekey=0-b9RsB7f55U_rIZBu4IhVGQ

Fix: 265478433
Test: With and without floating search and always-on keyboard and
work profile.

Change-Id: I4f7ae0d376dae215c0cbd8deaee3e4a409d21ae4
2023-01-25 13:42:35 -08:00
Jason Mylen
4f2d04bafe Remove competing long haptic when user long presses on widget.
Before this change removing the competing long press haptic,long
pressing to drag the widget causes a doubleclickesque haptic because
of the first haptic being quickly cancelled.

Bug: 257531349
Test: manual
Change-Id: I320339725f5ba27a22e550c28838adda94384c0f
2023-01-25 21:26:15 +00:00
Jagrut Desai
98cea8165d Add divider line into taskbar.
Test: Visual(Pics in buganizer)
Bug: 265347148
Change-Id: Ia2fbd5f0938b7eed520652573f4aca5346685429
2023-01-25 10:09:26 -08:00
Bill Yi
dbf107a48c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I81de61faa1c95a7b7ca08b3fcdcbc89c3510b238
2023-01-23 08:44:23 -08:00
TreeHugger Robot
ee929a5a9e Merge "Workspace pagination UI update" into tm-qpr-dev am: a13d5c4b91
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20811740

Change-Id: Ida6a08eaac5ef5422a22edaa5b5f59b26660d069
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 00:08:28 +00:00
TreeHugger Robot
a13d5c4b91 Merge "Workspace pagination UI update" into tm-qpr-dev 2023-01-17 23:29:18 +00:00
Bill Yi
e21933ba5c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I88861b30cdbee63074ec871aa3abfece14666488
2023-01-15 20:54:28 -08:00
TreeHugger Robot
11cd614f9f Merge "Predictive swipe: show extra app icons at bottom of All Apps's RecyclerViews" into tm-qpr-dev am: 77a388c79e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20956814

Change-Id: I4e2d1344d82163e4c44484f71c16534af7b4585a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-14 06:38:56 +00:00
Fengjiang Li
3774824cea Predictive swipe: show extra app icons at bottom of All Apps's RecyclerViews
The maximum center scale of All Apps to Home is 90%. It means we should add 5% height to All Apps's RecyclerView to render extra app icons.

Test: manual
bug: b/264906511
Change-Id: I2e970580810220e25d7fc3a86c19abaf87ba2c6e
2023-01-13 15:55:17 -08:00
Federico Baron
3f255eb591 Workspace pagination UI update
Here we improve the pagination visuals to follow the new design specs. We also polish and fix some issues with dot pagination in workspace.

Bug: 262741688
Test: Turn on flag SHOW_DOT_PAGINATION, and test pagination on workspace. Verify that it follows the specs linked in the bug
Change-Id: I626cdcf1f7392bcc88e9b4d6fd1df65246861445
2023-01-12 18:17:42 -08:00