Commit Graph

6364 Commits

Author SHA1 Message Date
Song Chun Fan
59fa915e9e Merge "[Archive] Update the content description for the archived app" into main 2024-05-15 16:18:18 +00:00
Brandon Dayauon
e369bd6502 Merge changes I7c303e66,Idc03b9d3 into main
* changes:
  Add floatingMaskView when animating to mimic bottom container.
  Add private_space_floating_mask_view flag.
2024-05-14 23:15:40 +00:00
Shamali Patwa
8a5eddb923 Merge changes from topic "update-strings" into main
* changes:
  Add comments on suggestion category related strings
  Clean-up unused categories (follow up cleans up strings)
2024-05-14 18:38:54 +00:00
Luca Zuccarini
de2e793f53 Merge "Tune the window to icon and home scaling animation." into main 2024-05-14 09:12:24 +00:00
Shamali P
d07ed6b49b Add comments on suggestion category related strings
Also, deletes unused strings.

Bug: 339570620
Test: N/A
Flag: N/A
Change-Id: I3c53f9788c9734b6962b61d2a13b4445b91892ca
2024-05-13 23:23:34 +00:00
Shamali P
4f492626bd Clean-up unused categories (follow up cleans up strings)
Bug: N/A
Test: Unit tests
Flag: N/A
Change-Id: Id3bd76858d731b9e0eb977c094ebd3b19e1338ce
2024-05-13 23:13:56 +00:00
Brandon Dayauon
1d3ddb877d Add floatingMaskView when animating to mimic bottom container.
- On expand, we add the floating mask view and translate it out at the end.
- On collapse, we translate off the mask view in the beginning once the floating mask view is added
so that we can translate it in before the actual collapsing part of the animation

bug:339850589
Test manually:
https://drive.google.com/file/d/1YNc3vq9Cb5BcbcPOHp8H3lhe6KmYBdLI/view?usp=sharing
Flag:ACONFIG com.android.launcher3.private_space_floating_mask_view STAGING

Change-Id: I7c303e6629d83408bd314886fe10113246e44dcb
2024-05-13 11:08:05 -07:00
Luca Zuccarini
a152f8f044 Tune the window to icon and home scaling animation.
Result of several rounds of testing with UX and product. Ready to start
rolling out after this CL.

Bug: 298089923
Flag: ACONFIG com.android.launcher3.enable_scaling_reveal_home_animation DISABLED
Test: tested with the help of UX and PM
Change-Id: I2bcdfa5a314aeeb60acf7b38f3f3d463fedc277e
2024-05-13 13:31:20 +00:00
Bill Yi
33f84ee936 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1dab3cd897c392081269979c6ee0766ba76da1fb
2024-05-12 12:05:07 -07:00
Brandon Dayauon
3a2fe2b550 Merge "Update private space corners to 28dp" into main 2024-05-10 23:53:30 +00:00
Brandon Dayauon
a1b3c39bbd Update private space corners to 28dp
bug: 339876216
Test: manually
Flag: None
Change-Id: I1ce8ac2f128de3a614c74db0db59ce451dc7ed6e
2024-05-10 12:41:22 -07:00
Winson Chung
94e8ad0731 Add multi-instance state to item infos
- Add legacy resource for supported multi-instance apps that
  matches the current SystemUI resource of the same name, and will
  be removed as apps migrate to the V manifest property to declare
  multi-instance support
- Load the multi-instance state from PackageManager when the db is
  first loaded or when packages are updated
- The multi-instance check is then used to determine if an app pair
  can be saved (ie. whether the action can be shown)

Bug: 323112914
Test: atest NexusLauncherTests

Change-Id: I565b4bee4ab5f7040910306b1fd60a4fc3bf9a1c
2024-05-09 18:43:38 +00:00
Treehugger Robot
bdccfe4fd2 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-05-08 19:07:16 +00:00
Ivan Chiang
61abfb9738 [Archive] Update the content description for the archived app
Change the string from "App is archived. Tap to download." to
"App is archived. Tap to download and restore."

Flag: ACONFIG com.android.launcher3.enable_support_for_archiving NEXTFOOD
Bug: 337976645
Test: Manual. Enable the Talkback. Check the result
Change-Id: I72d2fb2bd2d75a3b44a97637273e78a94d6f1880
2024-05-08 10:57:36 +00:00
Bill Yi
f54bad066b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I141e417d95c07f25e96eb904f342c44bfef9bcf9
2024-05-07 17:00:59 -07:00
Holly Jiuyu Sun
8834a6c450 Merge "[PS] Update Install button string." into main 2024-05-07 21:35:02 +00:00
Holly Sun
64f36f3679 [PS] Update Install button string.
Screenshot: https://screenshot.googleplex.com/B6UrJt92QMMgSuG

Bug: 338357091
Test: manual
Flag: aconfig com.android.launcher3.private_space_app_installer_button nextfood
Change-Id: Ia408ccfa20ea3c142bd22c326954d278fa571815
2024-05-06 20:35:01 -07:00
Willie Koomson
c81ffaf821 Merge "Remove shadow on Add button" into main 2024-05-07 01:15:37 +00:00
Willie Koomson
49e364cd0b Remove shadow on Add button
Set android:stateListAnimator to @null to remove default shadow on Add
button.

Bug: 333736273
Test: manual, check shadow on device
Flag: ACONFIG com.android.launcher3.enable_widget_tap_to_add NEXTFOOD
Change-Id: Ifa66801963e69582935806eb8a39dcfe624ffdc7
2024-05-06 22:26:24 +00:00
Bill Yi
ed3431b768 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie080576afbf469c8e1bd801555f22463afa06da9
2024-05-03 01:49:37 -07:00
Willie Koomson
1156e8419a Hide add button text if cell is too narrow
If the WidgetCell is not wide enough, hide the add button text and show
an icon-only plus button.

Bug: 333735974
Test: manual
Flag: ACONFIG com.android.launcher3.enable_widget_tap_to_add NEXTFOOD
Change-Id: Ieb0b2e679bd4a5785a0f7f01e177ad412a355ce7
2024-05-02 19:55:41 +00:00
Willie Koomson
61dc97ecb2 Update font settings to match POR
Updates font color, size, weight, and line height for text in the widget
picker to match POR and pass a11y test.

Bug: 317948371
Flag: NONE
Test: Accessibility Scanner contrast test
Change-Id: I3c7676c507b81a616876206681972ebb9fefd0c3
2024-05-02 19:55:33 +00:00
Bill Yi
854b874cc0 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-04-29 18:54:39 +00:00
Gustav Sennton
56f9df0620 Merge "[Desktop Mode] Show indicators under Taskbar app icons for running apps" into main 2024-04-29 08:28:28 +00:00
Bill Yi
1c48bb0e54 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9cefb3d308a88979430404598f58c5350f1eebfd
2024-04-28 18:40:16 -07:00
Bill Yi
359c5005f2 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-04-26 23:46:21 +00:00
Willie Koomson
21379bfbbc Merge "Remove widget education tip dialog" into main 2024-04-26 20:23:21 +00:00
Gustav Sennton
52a8b7e24b [Desktop Mode] Show indicators under Taskbar app icons for running apps
In Desktop Mode we show running Desktop apps in the Taskbar. With this
change we also show an indicator under the app icon for each such
running app.

Bug: 332504528
Test: manual
Test: DesktopTaskbarRunningAppsControllerTest
Flag: ACONFIG com.android.window.flags.Flags.enableDesktopWindowingTaskbarRunningApps DEVELOPMENT
Change-Id: If0906dab8ad0bd8a78d93a4e99db47550e763bed
2024-04-26 15:29:00 +00:00
Willie Koomson
d731ba2ff1 Remove widget education tip dialog
This change removes the widget education tip dialog, and the arrow
tip view. These are no longer needed now that taps are handled by
showing an add button.

Bug: 335318980
Test: `pm clear com.google.android.apps.nexuslauncher` and open widget
 picker
Flag: ACONFIG com.android.launcher3.enable_widget_tap_to_add NEXTFOOD
Change-Id: I9b24a41604880f5f94939c02b94f1a9f6a6c83d5
2024-04-25 22:56:36 +00:00
Bill Yi
e06c708edb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I642cb12d06a2b1042da01e904a1ee00ce8566936
2024-04-25 15:56:29 -07:00
Treehugger Robot
aab3693c61 Merge "Increasing Header height to 72dp." into main 2024-04-25 21:00:44 +00:00
Himanshu Gupta
578f1a474e Merge "Fix Accessbility bugs for PS." into main 2024-04-25 17:03:54 +00:00
Himanshu Gupta
42e3196011 Fix Accessbility bugs for PS.
This Cl contains:
1. Alt text for Lock/Unlock button as per state.
2. Alt text for Header when Locked.
3. Removing Header from accessibility target when unlocked.

Bug: 328024119
Test: Manual
Flag: NA
Change-Id: I791176afdae4fc6eb9387080aa036c1aed2a03a9
2024-04-25 11:57:53 +01:00
Shamali Patwa
587c3ce049 Merge changes from topic "bottomsheet-with-insets" into main
* changes:
  Align the margins between handle, text, and container with main picker.
  Update the app-specific picker to have a container like the main picker
2024-04-24 21:16:28 +00:00
Shamali P
d4997cf063 Align the margins between handle, text, and container with main picker.
Also aligns style to match main picker which doesn't set header style.

Requested by Jane / UX.

Bug: 328812171
Flag: N/A
Test: Manual - need to build a SS test for this opened - 336284716
Change-Id: I15fb82e807fdaa55bbfaaf73872273d1d6e84f97
2024-04-24 19:15:11 +00:00
Shamali P
9478a40898 Update the app-specific picker to have a container like the main picker
This is to ensure widgets are displayed with same container across the
two pickers.

* http://screencast/cast/NDYxNjMzNDExNjY1MTAwOHwwMTBlYzkwZC0wNg
* http://screencast/cast/NjY1NzAyNzY5NzgwMzI2NHwyYTg3ZWIzNS0wNw
* http://screencast/cast/NTYyMzcwMTc4NDQ5NDA4MHw3Y2JlZDEwZS04Mw

Bug: 328812171
Flag: N/A
Test: Manual - need to build a SS test for this opened - 336284716
Change-Id: I42b743b99cf6f47b7bade57de01b130df78ac1e9
2024-04-24 19:14:50 +00:00
Shamali P
3132947812 Limit number of items grouped on a row to 3.
With shortcuts this allows for more space to display two word title
below without ellipsizing it. (screen/4pJvcFFKJhooqZU)

Also let widget description show upto 3 lines to more of it to show
when stacked (screen/7xv8ng4H7iRLU79)

Bug: N/A
Flag: N/A
Test: Screenshot
Change-Id: Ia4e30f943f602b811e607d9cb52152f78cdc20e5
2024-04-24 19:14:23 +00:00
Himanshu Gupta
6d40d42976 Increasing Header height to 72dp.
As per UX spec, the header height needs to
be 72 dp, with the settings gear, unlock button
in middle occupying 48dp, leaving 12dp padding
above and below the latter in header.

Before: https://photos.app.goo.gl/j4vtTQXWy93DRwGA6
After: https://photos.app.goo.gl/7SxLdCQh7KJzYYLx5

Fix: 336510036
Test: Verified on device.
Flag: NA
Change-Id: I7c8115bf3c9b5832a2abcc4a710a2ccf78784c2b
2024-04-24 14:58:59 +01:00
Saumya Prakash
17cd6ca62a Only run search edu when enabled, also make code more generic.
We only need to run the Search edu if it is enabled on devices. The code
itself is also made more generic in terms of method and variable names.

Fix: 330401405
Test: Enable and disable the search function and check whether the edu tooltip shows
up for each specific use case.
Flag: ACONFIG com.android.launcher3.enable_taskbar_pinning NEXTFOOD

Change-Id: I1cea3ee56922c0b47ae7e8379aad4b36570daa17
2024-04-23 22:02:15 +00:00
Brandon Dayauon
782af232e3 Merge "Update badge color to textColorPrimaryInverse" into main 2024-04-23 20:42:56 +00:00
Brandon Dayauon
4f781aeac0 Update badge color to textColorPrimaryInverse
Just got updated textColorPrimaryInverse color to use on badge to support the themedness. This color
is consistent with the popup icon colors that is already being used.

bug:324574278
Test after:
dark theme: https://drive.google.com/file/d/1Q9BKlbw0bi5yz-wzPa160JMBEqK7QKcJ/view?usp=sharing
light theme: https://drive.google.com/file/d/1QH_FSOo8H63K_8WKfiDuV1ypGqctYMqt/view?usp=sharing
Flag: None

Change-Id: If59e20356d80b234ad405cfe6995d474dbfe5c57
2024-04-23 11:13:22 -07:00
Himanshu Gupta
faafb3a19a Fix horizontal spacing in PS Header
1. Removes padding between settings cog and lock button,
as the insets already provide the required padding.
2. Reduces the lock button margin from left to accomodate
the inbuilt inset in the button.

Fix: 336510036
Test: Verified on device.
Flag: NA
Change-Id: I077097c7beb2cc8fe14f4367c66ca4e1ad4270d0
2024-04-23 15:28:01 +01:00
Bill Yi
6f2f4fd9a6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I075547a7799f9e0f6296f9587e246f5d4bee0f42
2024-04-21 18:47:59 -07:00
Bill Yi
7d5c3b60e8 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-04-20 00:45:08 +00:00
Shamali Patwa
a80e199798 Merge "Keep rounded corners while scrolling in right pane & fix scrollbar size." into main 2024-04-19 22:43:39 +00:00
Bill Yi
a42f37d97e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ife6c71dc43953d4bb17e9913334aeb3e6d55d9a8
2024-04-18 23:14:45 -07:00
Brandon Dayauon
24db282ed4 Merge changes Ied2efcf6,I07579635 into main
* changes:
  Polish workFAB with updated spec.
  Fix workFAB alignment.
2024-04-19 00:59:19 +00:00
Brandon Dayauon
7760a4c262 Merge "Private space header to support RTL" into main 2024-04-18 23:19:35 +00:00
Shamali P
5f7eb1f2ee Keep rounded corners while scrolling in right pane & fix scrollbar size.
[demo](http://screencast/api/gif/NDU4MTQ5ODE3Mzc4NDA2NHxhYmUzMDcxNy04MA/image)

Bug: 333734241
Test: screencast
Flag: N/A
Change-Id: Ifb522ca2c0a1092bf41c630e336b19c81d504c26
2024-04-18 22:32:30 +00:00
Brandon Dayauon
baf5f6ec3d Polish workFAB with updated spec.
Updating the workFAB to the new spec: https://docs.google.com/presentation/d/1tTODboxGqJ3ypEyYnr0-bUpSXcvX1cl6Sj8y0Nut5hU/edit?resourcekey=0-9GT8EJG43kTT4aKPWVWRig#slide=id.g2c8f3ae8e02_0_0
Have the background endPadding to be 4 and icon have an endMargin of 12 and the text endMargin of 16.
So that when the text is disappeared, the space between the icon and the right bound is 16dp to spec.

bug:332761814
Test manually:
after LTR expanded:https://drive.google.com/file/d/1NZQW0CF9VFZBoM3673LFiUknqW2nf4r8/view?usp=sharing
after LTR collapsed: https://drive.google.com/file/d/1NRpdTuYQntSs5-yeRL1fJIJy2ETDOYLM/view?usp=sharing
after RTL collapsed: https://drive.google.com/file/d/1NE51MIsS5Fk0DwAuzCehEQzTa42OGj_o/view?usp=sharing
after RTL expanded: https://drive.google.com/file/d/1NPgiPfzw3DOa_xbB_TtlwK-G1Y5WCi53/view?usp=sharing
Flag:None

Change-Id: Ied2efcf6b1bd19c191d80e47bae4f8f6e3794803
2024-04-18 14:40:42 -07:00