Commit Graph
49925 Commits
Author SHA1 Message Date
Yogisha Dixit f9954cc4cc Fix bug with resize frame disappearing.
Currently, if you resize the widget to the top, bottom or right, the
resize frame disappears. This is because the AppWidgetResizeFrame code
relies on the indices of the child elements to find the drag handles.

I updated the code to instead use IDs since that is more robust.

Test: manual
Bug: 182305670
Change-Id: Iaa9d32c9190fb579101914f03d57bb48dcecb88d
2021-03-16 21:31:46 +00:00
Samuel Fufa 45c16f7392 [Hotseat] Fix badging for shortcut predictions in hotseat
This change also sends shortcutInfo corresponding to AppTargetEvent

Screenshot: https://screenshot.googleplex.com/7nN7mNEuMCLkKbY
Bug: 159500320
Test: Manual
Change-Id: I9c31d7208510c5362039868ae41d098c9eb1e2dd
2021-03-16 15:49:16 -05:00
Steven Ng 1a4670eeff Only clear widgets list upon all widgets & shortcuts update
Test: Install BBC News. Then, quickly go to all widgets tray.
      BBC News widgets is added to the all widgets tray without
      removing other widgets.

Bug: 182897740
Change-Id: I17b50f5128e24c346354b8fb7817a318a94efb62
2021-03-16 19:30:04 +00:00
Tony Wickham e5695f9196 Hide taskbar when certain floating views are open
Test: Open widgets, ensure taskbar hides
Bug: 171917176
Change-Id: Ib78182fe0ca1ea5ffbd28ab42f49ab8f0e535a18
2021-03-16 11:28:35 -07:00
Alex Chau ecd12b32c9 Show overview as grid in fallback recents
- Replace mShowAsGrid with state specific mOverviewGridEnabled and mCurrentGestureEndTarget
- Avoid showing invisible home task in grid
- Fix quick switch out of orientation in fallback recents
- Add a HOME state to switch to when starting home, to avoid showing grid overview briefly in quick switch
- Separate clear all button and overview actions handling
- Always maintain first task's fullscreen translation at 0 to avoid jumping when mOverviewFullscreenEnabled changes
- Moved fullscreenTranslation calculation to RecentsView
- Added GestureEndTarget -> BaseState translation to allow querying displayOverviewAsGrid for a displayOverviewTasksAsGrid

Bug: 174464863
Test: Launch overveiw from home, launch overveiw from app, launch into app, test for both small and large screens
Change-Id: Iee06d94d3067ea45cadd2051717223ddc0e6e70c
2021-03-16 17:08:03 +00:00
Hyunyoung Song a5d8c9cbf0 Merge "Hide keyboard only when scrolling happens" into sc-dev am: a79c7e4227
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13868206

Change-Id: Id0977cae26bfcef19c13f21664e3352539d2b809
2021-03-16 16:59:36 +00:00
Hyunyoung Song b85d46a784 Merge "Hide keyboard only when scrolling happens" into sc-dev am: a79c7e4227
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13868206

Change-Id: I0fac013554a8658fa1a74b89b05f02adb96c5a64
2021-03-16 16:59:26 +00:00
Tony Wickham 4bcfd703b7 Merge "Hide nav handle/background when taskbar is showing" into sc-dev am: d12feb574c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13880565

Change-Id: Ifb2edf33a159b97b69d07dadb0aa1e59e9a7c620
2021-03-16 16:58:27 +00:00
Tony Wickham 379f5418f9 Merge "Hide nav handle/background when taskbar is showing" into sc-dev am: d12feb574c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13880565

Change-Id: I529be14c2b7d7fb3a00a8a894dae0d19ae93ec55
2021-03-16 16:58:16 +00:00
Hyunyoung Song a79c7e4227 Merge "Hide keyboard only when scrolling happens" into sc-dev 2021-03-16 16:42:58 +00:00
Tony Wickham d12feb574c Merge "Hide nav handle/background when taskbar is showing" into sc-dev 2021-03-16 16:38:28 +00:00
Yogisha Dixit c42e49f535 Use targetCell[Width|Height] as default widget size.
Test: Created a widget and manually tested the following scenarios
  - targetCell[Width|Height] not specified
  - targetCell[Width|Height] larger than maxResize[Width|Height]
  - targetCell[Width|Height] smaller than minResize[Width|Height]
  - targetCell[Width|Height] within max/min bounds
Bug: 179807199
Change-Id: I55a9dd2f94aa450ba6362301f7ac5ba4ee42f44d
2021-03-16 14:41:55 +00:00
Alina Zaidi 1632752a72 Have an interface for WidgetsSearchBar so Nexus Launcher can override the search bar.
Test: Tested prototype locally.
Bug: b/157286785
Change-Id: I263063a451862755efe3d6e4a5a2eb69f2ea29b8
2021-03-16 09:25:22 +00:00
Hyunyoung Song a907a995c9 Hide keyboard only when scrolling happens
Bug: 179307221
Test: see attached video

Change-Id: I9b13c8f62122a6d7bf56a28c830be9a9dbfee52a
2021-03-16 00:05:04 -07:00
Vinit Nayak 00c72c88de Merge "Initial commit of new split screen work." into sc-dev am: 2b30076aba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13666456

Change-Id: I7305394e9509ffa4edfd8ec954b62ad09f13f3e7
2021-03-16 01:32:19 +00:00
Vinit Nayak 070d9e4490 Merge "Initial commit of new split screen work." into sc-dev am: 2b30076aba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13666456

Change-Id: I789572d90e056dae7fa2bca1af1ea769131ef6c9
2021-03-16 01:31:58 +00:00
android-build-team Robot 1455a086ee Snap for 7209903 from af0d09b98b to sc-v2-release
Change-Id: If1dff6a27b8c3088dd19b838a8858b96bda59fd1
2021-03-16 01:08:21 +00:00
android-build-team Robot 1f8ae39880 Snap for 7209903 from af0d09b98b to sc-release
Change-Id: Ib069359f7ca8b8771e8f580ec2d185a55357e982
2021-03-16 01:07:53 +00:00
Vinit Nayak 2b30076aba Merge "Initial commit of new split screen work." into sc-dev 2021-03-16 01:01:08 +00:00
Tony Wickham ced1126bee Merge "Remove insets due to Taskbar, except on workspace elements" into sc-dev am: 9f9787ad76
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13841018

Change-Id: I8d2c3023b6e37a4ed942f23e8f2de5e2ef195c61
2021-03-16 00:17:52 +00:00
Tony Wickham 00c5371c82 Merge "Remove insets due to Taskbar, except on workspace elements" into sc-dev am: 9f9787ad76
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13841018

Change-Id: Iba36ff38fab21975707b55f785814c6c00975f45
2021-03-16 00:17:21 +00:00
Steven Ng 0226d1ad79 Replace DragView bitmap with drawable
This is a preliminary work for local color extraction. In order to
apply local colors extracted from wallpaper to AppWidgetHostView
during drag, we need to hold a reference of the dragging
AppWidgetHostView.

In this CL, the following changes are made:
1. Instead of using bitmap image directly for icons, folders, shortcuts,
   legacy widget drawable preview, a BitmapDrawable wrapper is
    introduced.
2. Introduce a WidgetHostViewDraggableDrawable which draws
   LauncherAppWidgetHostView directly to canvas. No more bitmap
   generation overhead.
3. Remove drag outline from the drag logic because this will be replaced
   by a new grid color hint UI: https://screenshot.googleplex.com/7jBEVeuxFecFKKT.png

Test: Add: add widgets, shortcuts from widgets tray.
           add icons from all apps.
           create folder.
      Drag: drag existing widgets, shortcuts, folders and icons around

Bug: 182282587
Change-Id: Ia45ff756ea5bb80cf0761f0727a9453d50c204c0
2021-03-16 00:02:38 +00:00
Tony Wickham 9f9787ad76 Merge "Remove insets due to Taskbar, except on workspace elements" into sc-dev 2021-03-15 23:41:55 +00:00
Vinit Nayak d987a828e8 Initial commit of new split screen work.
TODO:
* Extract out common elements in TaskShortcutFactory.MultiWindowFactory
for commonalities between new and old way of
invoking split screen
* Integrate with WM APIs (b/182002789)
* Write tests for SplitSelectStateController

Bug: 181704764

Change-Id: Ice35adb4ea82897f5e2433dc9b93a549f3d511b5
2021-03-15 15:42:32 -07:00
Hongwei Wang 592106e1ab Merge "Pass the transform from Launcher to SysUI" into sc-dev am: 5b7c5e79a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13819114

Change-Id: If87ec77f62a969fb08941df978a8ea2480f39faf
2021-03-15 22:18:03 +00:00
Hongwei Wang 1626ff3798 Merge "Pass the transform from Launcher to SysUI" into sc-dev am: 5b7c5e79a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13819114

Change-Id: I34a2e0d1cd23b8a355eea8593853a2de3bd0411b
2021-03-15 22:17:14 +00:00
Tony Wickham 2debd80f1f Hide nav handle/background when taskbar is showing
Test: nav handle isn't showing unless taskbar is hidden or removed
Fixes: 181206743
Bug: 171917176
Change-Id: I84b7d0bba1a5d208b1f8b1b467faf79f04078348
2021-03-15 15:03:54 -07:00
Hongwei Wang 5b7c5e79a0 Merge "Pass the transform from Launcher to SysUI" into sc-dev 2021-03-15 21:59:13 +00:00
Winson Chung d3d48267c2 Merge "Revert "Update calls to go through the feature interface instead..."" into sc-dev am: af0d09b98b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13877230

Change-Id: Ic2f21caf0101088622f305a40fd8342c6319e687
2021-03-15 20:56:26 +00:00
Winson Chung 448c7b8a1f Merge "Revert "Update calls to go through the feature interface instead..."" into sc-dev am: af0d09b98b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13877230

Change-Id: I12471f569a3658267ac26e283e562d698e1dded7
2021-03-15 20:56:03 +00:00
Winson Chung af0d09b98b Merge "Revert "Update calls to go through the feature interface instead..."" into sc-dev 2021-03-15 20:46:19 +00:00
Samuel Fufa 44384a4941 Merge "[Search]Implement search session cache in AllApps" into sc-dev am: 6547d098c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13828049

Change-Id: I57413948150c1250d542b921c5309a0c9a2abfb3
2021-03-15 20:02:03 +00:00
Samuel Fufa cff5fbf58f Merge "[Search]Implement search session cache in AllApps" into sc-dev am: 6547d098c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13828049

Change-Id: I83ef4cf2ba6468773089ce9534bbf40d016d7e41
2021-03-15 20:01:14 +00:00
Samuel Fufa 6547d098c6 Merge "[Search]Implement search session cache in AllApps" into sc-dev 2021-03-15 19:23:06 +00:00
Alex Chau 22cc0b1b83 Merge "Use grid Rect when calculating clear all position" into sc-dev am: 510fc67c55
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13872528

Change-Id: I63b7a148d3db3e4e2a515f5000c4fe514ca499f3
2021-03-15 18:47:49 +00:00
Alex Chau ef56cf95d6 Merge "Use grid Rect when calculating clear all position" into sc-dev am: 510fc67c55
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13872528

Change-Id: I49f973b4ad2c3e404a4e42499330308d9afa7d65
2021-03-15 18:47:01 +00:00
Hyunyoung Song 0b79c07dd0 Merge "Fix AA+ decorator drawing out of bounds issue / Make AA+ opaque" into sc-dev am: 1b56eb4e6f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13848240

Change-Id: If8fc14a848a53deafb01bdc368295faa75bd7622
2021-03-15 18:46:56 +00:00
Hyunyoung Song 598702ba40 Merge "Fix AA+ decorator drawing out of bounds issue / Make AA+ opaque" into sc-dev am: 1b56eb4e6f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13848240

Change-Id: I269a7cc24b2a8071e2f9963302cc0ae102f15405
2021-03-15 18:44:13 +00:00
Alex Chau 510fc67c55 Merge "Use grid Rect when calculating clear all position" into sc-dev 2021-03-15 18:24:08 +00:00
Hyunyoung Song 1b56eb4e6f Merge "Fix AA+ decorator drawing out of bounds issue / Make AA+ opaque" into sc-dev 2021-03-15 18:18:21 +00:00
Andy Wickham f288077622 Merge "Moves BcSmartspaceDataPlugin to SystemUI." into sc-dev am: a7078bf39b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13803173

Change-Id: Ica93d5748e0dd1c33b0e185de182ecb0ddaf5e4d
2021-03-15 18:05:09 +00:00
Andy Wickham 402d3fe03c Merge "Moves BcSmartspaceDataPlugin to SystemUI." into sc-dev am: a7078bf39b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13803173

Change-Id: Ibc899dbc6871a04a5d718a871616057561b81adf
2021-03-15 18:05:08 +00:00
Vadim Tryshev 73e0f95a1d Merge "Fixing Launcher3 tests" into sc-dev am: f4cacd720c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13854478

Change-Id: I0f70bf0ba3061662186b69844435960e2ca5c05b
2021-03-15 18:04:52 +00:00
Vadim Tryshev 5b4ce95957 Merge "Fixing Launcher3 tests" into sc-dev am: f4cacd720c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13854478

Change-Id: Ib6c738b5f61976712b3ce5d25e9b702cf560584c
2021-03-15 18:03:42 +00:00
Winson Chung ee904f65c1 Revert "Update calls to go through the feature interface instead..."
Revert "1/ Add mechanism to expose shell feature directly (for Pip)"

Revert "Add shell aidl files"

Revert "Update starting window init call for CarLauncher"

Revert submission 13608835-shell_feature_interfaces

Reason for revert: SysUI Studio aidl import issue
Reverted Changes:
I49a5a0419:2/ Add mechanism to expose other features directly...
I19425896d:Update starting window init call for CarLauncher
If048d2cd9:1/ Add mechanism to expose shell feature directly ...
Ibb8365d3c:Add shell aidl files
Ie41b0b77a:Update calls to go through the feature interface i...

Change-Id: I99c039c88d1d5f9b249f74a361f5f30ee34addd2
2021-03-15 17:52:25 +00:00
Andy Wickham a7078bf39b Merge "Moves BcSmartspaceDataPlugin to SystemUI." into sc-dev 2021-03-15 17:49:36 +00:00
Vadim Tryshev f4cacd720c Merge "Fixing Launcher3 tests" into sc-dev 2021-03-15 17:47:05 +00:00
Samuel Fufa 342e9df03c [Search]Implement search session cache in AllApps
- Skips SearchTarget reapplication if the id has not changed
- Resolves Incessant  subtitle on short row

Bug: 181510793
Test: Manual
Change-Id: Ic10ef9682fd3700616b7b1b7a60e82b5f2250fd3
2021-03-15 11:31:51 -05:00
Yogisha Dixit 229f0dbc96 Merge "Do not launch configuration activity if CONFIGURATION_OPTIONAL." into sc-dev am: 27cdff4153
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13757247

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia24b3bdf7e93a4e70ba4c1f19ddde39216146c3c
2021-03-15 15:05:15 +00:00
Yogisha Dixit 9c288549ed Merge "Do not launch configuration activity if CONFIGURATION_OPTIONAL." into sc-dev am: 27cdff4153
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13757247

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0231336512b60cb76764731d3425a7c6e2d30b2f
2021-03-15 15:05:00 +00:00