]> gerrit.aphy Code Review - public/aphy/platform_packages_apps_Launcher3.git/log
public/aphy/platform_packages_apps_Launcher3.git
4 years agoMerge "Update size limits to match spec." into sc-dev
Jonathan Miranda [Fri, 23 Jul 2021 06:46:27 +0000 (06:46 +0000)]
Merge "Update size limits to match spec." into sc-dev

4 years agoUpdate size limits to match spec.
Jon Miranda [Tue, 20 Jul 2021 18:01:48 +0000 (11:01 -0700)]
Update size limits to match spec.

Bug: 194124461
Test: Verified using screnshots over spec
      Only 4x5 grid is affected
      Tested on multiple devices, multiple display options

Change-Id: I301c512e416ed81f6d41f6f0ecbf5994d47d82bf

4 years agoFix widget drop preview outline on 4x5 grids
Adam Cohen [Thu, 22 Jul 2021 00:24:12 +0000 (17:24 -0700)]
Fix widget drop preview outline on 4x5 grids

=> We were not account for mBorderSpacing in the outline calculation
=> This was fine in most cases as this value is 0, but 4x5 appears to be the exception

Bug: 194227752

Test: manual, see video in bug.
Change-Id: Ib590bc142a0f65e75f92ee057f8b4f4b0f81521b

4 years agoMerge "Measure WidgetsFullSheet before estimating the recommended table size" into...
TreeHugger Robot [Thu, 22 Jul 2021 18:53:32 +0000 (18:53 +0000)]
Merge "Measure WidgetsFullSheet before estimating the recommended table size" into sc-dev

4 years agoMeasure WidgetsFullSheet before estimating the recommended table
Steven Ng [Thu, 22 Jul 2021 15:08:15 +0000 (16:08 +0100)]
Measure WidgetsFullSheet before estimating the recommended table
size

Issue: The header view height was obtained before any measurement.

Test: On Pixel 5 4x5 gird with Photo widget shown in recommended
      table, make the device in landscape. Then open the full widgets
      picker. The widgets picker can be scrolled. Before this fix,
      scrolling is not possible.
Fix: 194172597
Change-Id: Ib30cf4b95d2ed23ff28f3d24e103f0e919b3a551

4 years agoMerge "Fix unable to swipe up to exit one-handed mode under 2 button navigation"...
Jason Chang [Thu, 22 Jul 2021 09:43:13 +0000 (09:43 +0000)]
Merge "Fix unable to swipe up to exit one-handed mode under 2 button navigation" into sc-dev

4 years agoMerge "Folder icon polish." into sc-dev
Jonathan Miranda [Thu, 22 Jul 2021 00:15:29 +0000 (00:15 +0000)]
Merge "Folder icon polish." into sc-dev

4 years agoSupport overriding All Apps EDU animation on drag
Brian Isganitis [Tue, 29 Jun 2021 05:33:25 +0000 (01:33 -0400)]
Support overriding All Apps EDU animation on drag

Test: Dragging during All Apps EDU animation overrides the animation.
Bug: 160218103
Change-Id: I1c0a2d047bcb43ea7ce30cf87182b392dac313e4

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Wed, 21 Jul 2021 12:46:42 +0000 (12:46 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Wed, 21 Jul 2021 05:55:06 +0000 (05:55 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: I828bb455fd6ce0c8e5552cac3bf2090f29021ccd

4 years agoFix unable to swipe up to exit one-handed mode under
Jason Chang [Fri, 16 Jul 2021 10:55:08 +0000 (18:55 +0800)]
Fix unable to swipe up to exit one-handed mode under
2 button navigation

Remove redundant condition checking when consuming One-handed mode
gesture events.

Bug: 193761450

Test: manual
Test: atest WMShellUnitTests
Change-Id: Id4687cb579c17d7de1a08b32c003e656cbbce820

4 years agoMerge "Revert "Merge "Revert "Use wallpaper colors for widgets in wallpaper change...
Brian Isganitis [Wed, 21 Jul 2021 00:37:36 +0000 (00:37 +0000)]
Merge "Revert "Merge "Revert "Use wallpaper colors for widgets in wallpaper change preview"" into sc-dev"" into sc-dev

4 years agoMerge "Revert "Apply depth even when surface is null"" into sc-dev
Lucas Dupin [Wed, 21 Jul 2021 00:20:30 +0000 (00:20 +0000)]
Merge "Revert "Apply depth even when surface is null"" into sc-dev

4 years agoFolder icon polish.
Jon Miranda [Tue, 20 Jul 2021 20:57:16 +0000 (13:57 -0700)]
Folder icon polish.

- Increase the overlap between the preview items and the background
  so that it appears more intentional (lots of reports of users
  thinking that its a bug)
- Fix bug where clip path was still clipping icons when
  dragging and swiping to home.

Bug: 193701705
Bug: 191225536
Test: test 2 icon, 3 icon, and 4 icon folders
      close folder on 2nd page, ensure clipping
      ensure no preview items are clipped in drag view
      ensure no preview items are clipped in swipe up to home
      test 2x2, 3x3, 4x4, 4x5, and 5x5 grids to ensure no clipping
      of folder icons
      drag and drop folder in and out of hotseat
      create folders (2 icon, 3 icon, 4 icon)

Merged-In: Id49bae33438e10248bef05450d7e2c92c2140748
Change-Id: Ic3708bd402704f0a6f57ae5315ef602e2bbc6d82

4 years agoRevert "Apply depth even when surface is null"
Lucas Dupin [Tue, 20 Jul 2021 21:13:50 +0000 (14:13 -0700)]
Revert "Apply depth even when surface is null"

This reverts commit a6c38be150681f537ef316a56867387309861768.

Fixes: 193333562
Test: manual
Change-Id: I4fae079e0cd056fc800e5a15389f4795c77e17fb

4 years agoMerge "Fix fast scroller issues / remove fast thumb access / fix wrong popup location...
Hyunyoung Song [Tue, 20 Jul 2021 19:06:36 +0000 (19:06 +0000)]
Merge "Fix fast scroller issues / remove fast thumb access / fix wrong popup location" into sc-dev

4 years agoMerge "Fixing quickswitch window not properly aligned in split-screen" into sc-dev
Sunny Goyal [Tue, 20 Jul 2021 07:03:51 +0000 (07:03 +0000)]
Merge "Fixing quickswitch window not properly aligned in split-screen" into sc-dev

4 years agoFix fast scroller issues / remove fast thumb access / fix wrong popup location
Hyunyoung Song [Tue, 20 Jul 2021 06:44:14 +0000 (23:44 -0700)]
Fix fast scroller issues / remove fast thumb access / fix wrong popup location

(1) Remove jumping to arbitrary fast scroller position
because back gesture can trigger arbitrary fast scrolling
(2) Pop up would show up in random location when user combines
touching the track and scrolling. This was because thumb
location was not updating when user was scrolling on the main
container.

Bug: 193177670
Bug: 191562400

Test: manual
Change-Id: I129aaa37ca911666453a8c98e24eaac33827238f

4 years agoRevert "Merge "Revert "Use wallpaper colors for widgets in wallpaper change preview...
Brian Isganitis [Tue, 20 Jul 2021 00:54:14 +0000 (20:54 -0400)]
Revert "Merge "Revert "Use wallpaper colors for widgets in wallpaper change preview"" into sc-dev"

This reverts commit 7de95d676728b4c510cc5e34a194f5012a978f47, reversing
changes made to 0a70a5a690dba50e07cb540d4d325d480a6893fa.

Lints have been added to fix errorprone.

Test: Widgets should adapt to wallpaper colors in launcher preview.
Bug: 192205054
Merged-In: I3fb76b6036cb909771b789eac15742df78c2c742
Merged-In: I4da9ad1cc88be251f97e86b6c8c9b346ed20f586
Change-Id: I6866f8521ed427d096f27da0a92d8b40e1099187

4 years agoMerge "Revert "Use wallpaper colors for widgets in wallpaper change preview"" into...
Jonathan Miranda [Tue, 20 Jul 2021 00:45:57 +0000 (00:45 +0000)]
Merge "Revert "Use wallpaper colors for widgets in wallpaper change preview"" into sc-dev

4 years agoRevert "Use wallpaper colors for widgets in wallpaper change preview"
Jonathan Miranda [Tue, 20 Jul 2021 00:37:19 +0000 (00:37 +0000)]
Revert "Use wallpaper colors for widgets in wallpaper change preview"

Revert "Implement generateColorsOverride from LocalColorExtractor"

Revert submission 15331418-colorcp

Reason for revert: Broke the build
Reverted Changes:
Ife80b07f9:Use wallpaper colors for widgets in wallpaper chan...
I1371eb787:Implement generateColorsOverride from LocalColorEx...

Bug: 194138049

// Using original change's merged-in tag to avoid clashing
Merged-In: I3fb76b6036cb909771b789eac15742df78c2c742
Merged-In: I4da9ad1cc88be251f97e86b6c8c9b346ed20f586

Change-Id: I3835dfb8efe745dc0a654712a5b1f68c4946f446

4 years agoMerge "Remove the shadow under PendingAppWidgetHostView." into sc-dev
TreeHugger Robot [Tue, 20 Jul 2021 00:25:48 +0000 (00:25 +0000)]
Merge "Remove the shadow under PendingAppWidgetHostView." into sc-dev

4 years agoFixing quickswitch window not properly aligned in split-screen
Sunny Goyal [Tue, 20 Jul 2021 00:08:31 +0000 (17:08 -0700)]
Fixing quickswitch window not properly aligned in split-screen

Bug: 193992000
Test: Manual
Change-Id: Ic37cbc561a0299be1a1c05dfb17bd826c173100e

4 years agoMerge "Use wallpaper colors for widgets in wallpaper change preview" into sc-dev
Brian Isganitis [Mon, 19 Jul 2021 23:47:56 +0000 (23:47 +0000)]
Merge "Use wallpaper colors for widgets in wallpaper change preview" into sc-dev

4 years agoRemove the shadow under PendingAppWidgetHostView.
Pierre Barbier de Reuille [Mon, 19 Jul 2021 21:55:49 +0000 (22:55 +0100)]
Remove the shadow under PendingAppWidgetHostView.

Fix: 194007734
Test: Manual (see bug)
Change-Id: Ia46dbf8417bb9df17f35b43bfa2698206d940587

4 years agoUse wallpaper colors for widgets in wallpaper change preview
Brian Isganitis [Mon, 19 Jul 2021 20:58:20 +0000 (16:58 -0400)]
Use wallpaper colors for widgets in wallpaper change preview

Test: Widgets should adapt to wallpaper colors in launcher preview.
Bug: 192205054
Merged-In: I3fb76b6036cb909771b789eac15742df78c2c742
Merged-In: I4da9ad1cc88be251f97e86b6c8c9b346ed20f586
Change-Id: Ife80b07f99da913d65bff96fba2ccd76b0a2ed48

4 years agoMerge "Updating bounce animation to move hotseat instead of all-apps" into sc-dev
TreeHugger Robot [Mon, 19 Jul 2021 20:05:44 +0000 (20:05 +0000)]
Merge "Updating bounce animation to move hotseat instead of all-apps" into sc-dev

4 years agoMerge "Fix notification dot not always being up to date." into sc-dev
Jonathan Miranda [Mon, 19 Jul 2021 17:45:26 +0000 (17:45 +0000)]
Merge "Fix notification dot not always being up to date." into sc-dev

4 years agoUpdating bounce animation to move hotseat instead of all-apps
Sunny Goyal [Fri, 16 Jul 2021 23:48:42 +0000 (16:48 -0700)]
Updating bounce animation to move hotseat instead of all-apps

Bug: 193827513
Test: Manual
Change-Id: I86c0e9cb56ab3c6e8e978f574e564fe1e1a41c43

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Sun, 18 Jul 2021 07:25:21 +0000 (07:25 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Sun, 18 Jul 2021 04:18:59 +0000 (04:18 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: I1a4046b443a41fcae2e8186cadf24d1e5d2ea296

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Sun, 18 Jul 2021 04:16:45 +0000 (04:16 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: Ic985ca3898b08c71facddecf2e9c94fd4f0ad350

4 years agoFix notification dot not always being up to date.
Jon Miranda [Sat, 17 Jul 2021 00:50:56 +0000 (17:50 -0700)]
Fix notification dot not always being up to date.

- Prediction row views were never updated when notification changes.
- FloatingIconView set the BubbleTextView to force hide dot, but never restored it.
  BubbleTextView is instanceof IconLabelDotView, so its already handled in the end runnable

Bug: 183360736
Test: 1. swipe up to go home such that the closing app has a notification,
         note that the notification dot is properly updated
      2. have all apps open
         make notification update for a predicted app
         ensure dot is properly updated

Change-Id: I35dacf9b71a3d8b8a857be450690d65ea9199bf6

4 years agoMerge "Update widget manipulation colors to match AOD." into sc-dev
TreeHugger Robot [Fri, 16 Jul 2021 21:36:35 +0000 (21:36 +0000)]
Merge "Update widget manipulation colors to match AOD." into sc-dev

4 years agoUpdate widget manipulation colors to match AOD.
Yogisha Dixit [Fri, 16 Jul 2021 14:04:33 +0000 (15:04 +0100)]
Update widget manipulation colors to match AOD.

This CL makes two changes:
1. Changes the colors we use from system_accent1_50 ->
system_accent1_100 (light wallpapers) and system_accent2_700 ->
system_accent2_600 (dark wallpapers).
2. Changes when we use the light/dark colors. Before: light accent color
when wallpaper luminosity < 0.3. After: light accent color when wallpaper luminosity < 0.7.

Bug: 192359286
Test: manual on light/dark wallpapers with light/dark theme
Change-Id: I28abfd77439a16b4bb637376fd88180d536364cf
Merged-In: I28abfd77439a16b4bb637376fd88180d536364cf

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Fri, 16 Jul 2021 15:08:59 +0000 (15:08 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Fri, 16 Jul 2021 15:05:35 +0000 (15:05 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Fri, 16 Jul 2021 02:54:26 +0000 (02:54 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: Iea3e5d755411a8fc8b2e5a878815bf44b97e9f18

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Fri, 16 Jul 2021 02:51:58 +0000 (02:51 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: I3d7b3786054b9790b140cbaa43b0d96196beb042

4 years agoMerge "Fixing regression from animation not starting while in overview" into sc-dev
TreeHugger Robot [Fri, 16 Jul 2021 01:27:02 +0000 (01:27 +0000)]
Merge "Fixing regression from animation not starting while in overview" into sc-dev

4 years agoFixing regression from animation not starting while in overview
Winson Chung [Thu, 15 Jul 2021 23:17:51 +0000 (16:17 -0700)]
Fixing regression from animation not starting while in overview

Bug: 193830420
Test: Open an app in overview, tap on a notification
Change-Id: Ifd9797dc40d9fffbf9603bca98fcb4a4119e0444

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Thu, 15 Jul 2021 18:34:11 +0000 (18:34 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Thu, 15 Jul 2021 18:31:31 +0000 (18:31 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoMerge "Keep transparent drawable for clipping outline during launch animation" into...
Cyrus Boadway [Thu, 15 Jul 2021 18:28:29 +0000 (18:28 +0000)]
Merge "Keep transparent drawable for clipping outline during launch animation" into sc-dev

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Thu, 15 Jul 2021 17:18:25 +0000 (17:18 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: Ie927e0de6422f58f850efe83a6a7ba4e20a7333c

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Thu, 15 Jul 2021 17:17:13 +0000 (17:17 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: I07a46873b25609c6626be27f535de361b199c313

4 years agoFix class cast issue in AddItemActivity
Steven Ng [Thu, 15 Jul 2021 12:11:59 +0000 (13:11 +0100)]
Fix class cast issue in AddItemActivity

AddItemActivity is a standalone activity. There is no Launcher activity
instance. Avoid using LauncherAppWidgetHostView in WidgetCell by
replacing it NavigableAppWidgetHostView instead

Test: Check preview layouts are correctly rendered in widgets picker
      and pin widget dialog. Also test drag and drop to verify the
      local color extraction still works when dragging a preview layout
      from widgets picker to home screen.
Fix: 193765783
Change-Id: I3a734a54941257cebcd7b7f6a4c2c9cc764c5c12

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Thu, 15 Jul 2021 01:06:14 +0000 (01:06 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Thu, 15 Jul 2021 01:00:20 +0000 (01:00 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Thu, 15 Jul 2021 00:54:16 +0000 (00:54 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoMerge "Fix work profile disable button falsing" into sc-dev
TreeHugger Robot [Thu, 15 Jul 2021 00:27:59 +0000 (00:27 +0000)]
Merge "Fix work profile disable button falsing" into sc-dev

4 years agoMerge "Use display cutout info in auto-enter-pip transition" into sc-dev
Hongwei Wang [Wed, 14 Jul 2021 23:52:42 +0000 (23:52 +0000)]
Merge "Use display cutout info in auto-enter-pip transition" into sc-dev

4 years agoFix work profile disable button falsing
Hyunyoung Song [Wed, 14 Jul 2021 18:39:43 +0000 (11:39 -0700)]
Fix work profile disable button falsing

Bug: 191996677

Test: before this CL: when tapping on immediately above keyboard when
keyboard is translating or when onApplyWindowInset is called, the
hidden (GONE) view handles touch and triggers work profile to be disabled.

After the CL, the button view is not attached to the parent container
when on personal tab. Also, the onApplyWindowInsets method translations
can only be called when work tab is selected.

Change-Id: Ib3e9a5c4b3280052f9ccb62a199ed256ae4e094f

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Wed, 14 Jul 2021 21:41:32 +0000 (21:41 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: I66e91e3b191845a9055ab7a7229447b5d73cd06e

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Wed, 14 Jul 2021 21:40:52 +0000 (21:40 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: I1cb8955229751514f4577ba5d37f8ad1d0ab56c5

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Wed, 14 Jul 2021 21:40:23 +0000 (21:40 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: I59d3343c23a12713e00ff0f3b5c96eea4ffb437e

4 years agoMerge "Remove press home command from AddConfigWidgetTest." into sc-dev
TreeHugger Robot [Wed, 14 Jul 2021 20:25:09 +0000 (20:25 +0000)]
Merge "Remove press home command from AddConfigWidgetTest." into sc-dev

4 years agoKeep transparent drawable for clipping outline during launch animation
Cyrus Boadway [Wed, 14 Jul 2021 16:47:25 +0000 (16:47 +0000)]
Keep transparent drawable for clipping outline during launch animation

During the widget-activity transition, the widget foreground loses its
clipping radius, if the clipping is determined by a drawable. We remove
the drawable through the animation.

For widgets where there is content being clipped by the background's
corener radius, this results in the widget window appearing square
through the entire animation, then snapping in rounded corners on
animation-complete.

To solve this, we leave a transparent clone of the drawable in the
original drawable's place, for the balance of the animation, providing
the outline for clipping.

Manual testing against 20 Google widgets showed no regression in
behaviour in other cases.

Bug: 193665108
Test: manual

Change-Id: I3db31e4634c8dd6b22a513a976386d396445ebc2

4 years agoRemove press home command from AddConfigWidgetTest.
Yogisha Dixit [Fri, 2 Jul 2021 17:30:00 +0000 (18:30 +0100)]
Remove press home command from AddConfigWidgetTest.

Context: b/192406323#comment4

Bug: 192406323
Test: AddConfigWidgetTest
Change-Id: I2741358de93f75ef7ed73ee97964020162542756

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Wed, 14 Jul 2021 06:00:49 +0000 (06:00 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Wed, 14 Jul 2021 05:51:08 +0000 (05:51 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Wed, 14 Jul 2021 04:27:32 +0000 (04:27 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: Id6b12fc5d2365c9bddbe1406006c404021463c9f

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Wed, 14 Jul 2021 04:26:27 +0000 (04:26 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: I0bd29843a664b6a0a4c106f0f7ac4a7505ef7602

4 years agoMerge "NIU Actions: Hide button captions when feature is disabled" into sc-dev
TreeHugger Robot [Wed, 14 Jul 2021 04:10:46 +0000 (04:10 +0000)]
Merge "NIU Actions: Hide button captions when feature is disabled" into sc-dev

4 years agoNIU Actions: Hide button captions when feature is disabled
Jon Spivack [Tue, 13 Jul 2021 20:54:02 +0000 (13:54 -0700)]
NIU Actions: Hide button captions when feature is disabled

Previously, only the buttons themselves were hidden when the feature was flagged off at build time. This adds the rest of the relevant layout UI (captions, spaces) to that logic.

Bug: 192692326
Test: Manual (Pixel 3A, enable_niu_actions on and off)
Change-Id: Ic58d9891887e3e0eb10d38af80b73f04cf66ea79

4 years agoMerge "Update Gesture navigation tutorial to match new specs" into sc-dev
Schneider Victor-tulias [Tue, 13 Jul 2021 23:27:45 +0000 (23:27 +0000)]
Merge "Update Gesture navigation tutorial to match new specs" into sc-dev

4 years agoUse display cutout info in auto-enter-pip transition
Hongwei Wang [Tue, 13 Jul 2021 00:49:13 +0000 (17:49 -0700)]
Use display cutout info in auto-enter-pip transition

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/bpKcGg1eoOo5Jz5U6IwBYK
Bug: 191310680
Test: manual, auto-enter-pip from landscape with source rect hint being
      turned on, see the video
Change-Id: Ic191fc73597132a5119522dda477a4319e35d1c8
Merged-In: Ic191fc73597132a5119522dda477a4319e35d1c8

4 years agoMerge "AA+ Final UX spec changes" into sc-dev
TreeHugger Robot [Tue, 13 Jul 2021 20:24:04 +0000 (20:24 +0000)]
Merge "AA+ Final UX spec changes" into sc-dev

4 years agoMerge "Adjust usages of cross-window blur to new radius" into sc-dev
Galia Peycheva [Tue, 13 Jul 2021 19:19:20 +0000 (19:19 +0000)]
Merge "Adjust usages of cross-window blur to new radius" into sc-dev

4 years agoMerge "Fix hole in recycler view" into sc-dev
TreeHugger Robot [Tue, 13 Jul 2021 19:05:22 +0000 (19:05 +0000)]
Merge "Fix hole in recycler view" into sc-dev

4 years agoFix hole in recycler view
Hyunyoung Song [Tue, 13 Jul 2021 08:31:59 +0000 (01:31 -0700)]
Fix hole in recycler view

Bug: 153780395
Test: manual

Without this change, typing single character and then
backspace, and then scrolling down and up will result in
hole in recycler view.

Change-Id: Iff6fa3f147d8bfdb8a7e84847b96e5390941dd4e

4 years agoAA+ Final UX spec changes
Hyunyoung Song [Tue, 13 Jul 2021 08:31:02 +0000 (01:31 -0700)]
AA+ Final UX spec changes

Bug: 192670508
Test: manual

Change-Id: Id448f31adef851175306cd513974a64a1f029e50

4 years agoMerge "Fix shortcut size calcuation" into sc-dev
Steven Ng [Tue, 13 Jul 2021 13:59:41 +0000 (13:59 +0000)]
Merge "Fix shortcut size calcuation" into sc-dev

4 years agoFix shortcut size calcuation
Steven Ng [Mon, 12 Jul 2021 18:01:31 +0000 (19:01 +0100)]
Fix shortcut size calcuation

Shortcut size should be the size of all apps icon + padding

Test: Check shortcuts and widgets are shown without crash in the
      following surfaces with display & font set to largest and
      display cutout enabled. Repeat the same test with normal
      display setting and no cutout.
      1. Full widgets picker
      2. Bottom widgets picker
      3. Pin widget dialog
Fix: 193422438
Change-Id: Ibfebf94e92eed5e9cd1dd4196d98823b0e4dda6b

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Tue, 13 Jul 2021 08:50:05 +0000 (08:50 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Tue, 13 Jul 2021 07:23:22 +0000 (07:23 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: I4b7ebce75701bfc23b7c65ed6d03eed16c94f26d

4 years agoMerge "Add accessibility announcement when user clicks on 'Add automatically to home...
TreeHugger Robot [Tue, 13 Jul 2021 05:06:10 +0000 (05:06 +0000)]
Merge "Add accessibility announcement when user clicks on 'Add automatically to home screen' button" into sc-dev

4 years agoMerge "NIU Actions: Add assistant error dialogs" into sc-dev
TreeHugger Robot [Tue, 13 Jul 2021 01:05:03 +0000 (01:05 +0000)]
Merge "NIU Actions: Add assistant error dialogs" into sc-dev

4 years agoNIU Actions: Add assistant error dialogs
Jon Spivack [Fri, 9 Jul 2021 22:06:12 +0000 (15:06 -0700)]
NIU Actions: Add assistant error dialogs

The NIU Actions buttons send intents to the user's default assistant. If the user clicks one of the buttons without an appropriate default assistant set, a dialog will appear to explain the situation and redirect the user to Settings.

The existing privacy confirmation dialog code has been refactored into a reusable dialog, which is used here.

Bug: 192505939
Test: Manual on local Pixel 3A (unit tests to be added in b/192406446)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I7b43e008aa74805b166c09936fa938a5834c8460

4 years agoMerge "Deleting screen records for succeeded tests" into sc-dev
Vadim Tryshev [Mon, 12 Jul 2021 20:47:53 +0000 (20:47 +0000)]
Merge "Deleting screen records for succeeded tests" into sc-dev

4 years agoMerge "Edu card spec polish" into sc-dev
Hyunyoung Song [Mon, 12 Jul 2021 17:00:43 +0000 (17:00 +0000)]
Merge "Edu card spec polish" into sc-dev

4 years agoAdd accessibility announcement when user clicks on 'Add automatically to
Alina Zaidi [Fri, 9 Jul 2021 14:25:11 +0000 (15:25 +0100)]
Add accessibility announcement when user clicks on 'Add automatically to
home screen' button

Test: Tested manually with talkback on
Bug: 192808036
Bug: 192811245
Change-Id: I1c02738e0e4755b3bbdde12dad96ac2ed1996e6c

4 years agoAdjust usages of cross-window blur to new radius
Galia Peycheva [Mon, 12 Jul 2021 11:27:41 +0000 (13:27 +0200)]
Adjust usages of cross-window blur to new radius

Bug: 192241610
Test: m
Change-Id: Ibe9c25192f80c8bc19e8e79e39c7f3c3615e4f4d

4 years agoClear WidgetCell#mItem before recylcing a WidgetCell
Steven Ng [Fri, 9 Jul 2021 16:45:19 +0000 (17:45 +0100)]
Clear WidgetCell#mItem before recylcing a WidgetCell

This fixes a bug which reuses a previous widget item spans to
compute the preview size.

Fix: 193133048
Test: manual
Change-Id: I5459882e258dc010898854dbbe52a6fa8d84796c
(cherry picked from commit 3d27207ff6ff951add0a21b699761126d1af11ec)

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Sun, 11 Jul 2021 20:40:07 +0000 (20:40 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: Iffe4974f900e1fe5c7062f5ecb0ad3e322286cfa

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Sat, 10 Jul 2021 23:40:55 +0000 (23:40 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: Ic76c41ac95bc3b018c732775aad6355466292f6e

4 years agoEnd live tile for overview actions in Android Go
Tracy Zhou [Sat, 10 Jul 2021 07:12:15 +0000 (00:12 -0700)]
End live tile for overview actions in Android Go

Fixes: 193275019
Test: N/A
Change-Id: I0c22e557face73f656273da4fec4521a9c86d606

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Sat, 10 Jul 2021 02:05:11 +0000 (02:05 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Sat, 10 Jul 2021 00:38:41 +0000 (00:38 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: I94fb2323a7f88c1416ee2243ca6ea8b5ce521c86

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Sat, 10 Jul 2021 00:38:13 +0000 (00:38 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: I361ad941be6cee10767bd2f6a5e16e470269de85

4 years agoUpdate Gesture navigation tutorial to match new specs
Schneider Victor-tulias [Thu, 24 Jun 2021 22:05:18 +0000 (15:05 -0700)]
Update Gesture navigation tutorial to match new specs

- Updated strings
- Updated removed 'next' button when there are followign steps
- Added timeout to automatically continue the tutorial
- Combined back left and right into one step

Bug: 192009114
Bug: 177005427
Test: manual
Change-Id: I58b9017c4d69b5d097326c7d5be156a63951fb1a

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Fri, 9 Jul 2021 06:01:24 +0000 (06:01 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: I9905f7a629d628d392a1a59d74cbf65baf401b58

4 years agoEdu card spec polish
Hyunyoung Song [Fri, 9 Jul 2021 05:18:05 +0000 (22:18 -0700)]
Edu card spec polish

Bug: 193134601
Test: manual
Change-Id: Ibcc053b5006d36efd97fb75f6474fb8c8a5c24a4

4 years agoMerge "Fix crash when handling recents animation canceled" into sc-dev
Winson Chung [Thu, 8 Jul 2021 21:21:37 +0000 (21:21 +0000)]
Merge "Fix crash when handling recents animation canceled" into sc-dev

4 years agoMerge "Update work fab radius to match height" into sc-dev
Hyunyoung Song [Thu, 8 Jul 2021 18:25:17 +0000 (18:25 +0000)]
Merge "Update work fab radius to match height" into sc-dev

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Thu, 8 Jul 2021 18:04:16 +0000 (18:04 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoMerge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev
TreeHugger Robot [Thu, 8 Jul 2021 17:47:06 +0000 (17:47 +0000)]
Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev

4 years agoFix crash when handling recents animation canceled
Winson Chung [Thu, 8 Jul 2021 17:12:34 +0000 (10:12 -0700)]
Fix crash when handling recents animation canceled

- If Launcher finishes the animation, that also cleans up the screenshot
    on the server side, so we can skip calling it

Fixes: 192684578
Test: N/a, adding a null check
Change-Id: I8bf1ad5089762469697d14842cc14c184055e925

4 years agoMerge "Update CachingWidgetPreviewLoaderTest members to be non-static. These classes...
Bryan Bonnet [Thu, 8 Jul 2021 15:24:57 +0000 (15:24 +0000)]
Merge "Update CachingWidgetPreviewLoaderTest members to be non-static. These classes are stubbed by roboelectric so they cannot be static" into sc-dev

4 years agoImport translations. DO NOT MERGE ANYWHERE
Bill Yi [Thu, 8 Jul 2021 15:15:35 +0000 (15:15 +0000)]
Import translations. DO NOT MERGE ANYWHERE

Auto-generated-cl: translation import
Change-Id: I1f29c71229eb05b6264037308bf59184603388a7