Commit Graph

76729 Commits

Author SHA1 Message Date
Winson Chung bf087d6065 Ignore recents transition if there are no closing tasks am: 6f7e15ff64
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23909000

Change-Id: I6308efc06ae3f5283f48b64c504e2638b6482435
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-07 19:19:32 +00:00
Winson Chung b06c5f7a2b Ignore recents transition if there are no closing tasks am: 6f7e15ff64
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23909000

Change-Id: I8077d28abcee554ef793df5eefc7ceab94ec0149
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-07 19:19:31 +00:00
Winson Chung a53261b9cd Merge "Fix an issue with nav bar translations not being updated" into udc-dev 2023-07-07 18:33:16 +00:00
Liran Binyamin 469fef61ab Pass the bubble bar screen coordinates to WMShell
This allows WMShell to store the bubble bar coordinates so that it
draw the expanded view above it.

Fixes: 290099589
Test: Manual
       - Add bubbles to the bubble bar
       - Expand the bubble bar
       - Observe that there is enough space between the bar and the
         expanded view
Change-Id: Iff40b2b71369f33f343eb069e119f65723a6984e
2023-07-07 16:52:04 +00:00
Bill Yi b2f9564e83 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1909e37e82176edd16be4cb12dfd78b68393f92b
2023-07-07 04:33:59 -07:00
Bill Yi e632277211 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I57bc60c4f6da90524a5e74722e91b1cc89588136
2023-07-07 04:33:30 -07:00
Bill Yi 439a169aec Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3d931b84ef6418dea70056c6f7dcadb08e7ad75c
2023-07-07 04:32:27 -07:00
Bill Yi b50f0405d4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0423f262ebaa2dc8b47bce1f4bb108e510d93549
2023-07-07 04:32:01 -07:00
Bill Yi 4b28bf3048 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7e6d22e1b05ef9eda1da59b6569451b5160a7ddf
2023-07-06 22:43:17 -07:00
Bill Yi f2ad619c22 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9722fc801c1aa0b9c7d7956792595054e8e2f09a
2023-07-06 22:42:52 -07:00
Bill Yi 6dbeb857dd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib0b4f7554a34dcf7f22c8b6b6fa579ec2a1e945c
2023-07-06 22:41:45 -07:00
Bill Yi 8851a2634f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I239d8c74223ab3fce1d6cb902aa08d4bd34272da
2023-07-06 22:41:22 -07:00
Bill Yi 14d76c5fe6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1527753aecdfc71c57ef5ba94e62fe7426b1442e
2023-07-06 22:40:58 -07:00
Sunny Goyal ab099452a3 Merge "Fixing crash when using multi-window" into udc-qpr-dev am: 229b2efbae am: 2da6e6d572
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23924146

Change-Id: I8afc3741057a0fab54a82552e925b75e83eac1e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-07 03:56:17 +00:00
Lucas Dupin fe87375f64 Merge "Updating materialColorSurfaceContainerHighest color access" into udc-qpr-dev am: 6a925d0769 am: 0d8883469c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23917471

Change-Id: Idb0cabccabb423d7fbee041ee62f0ade1eafc140
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-07 03:55:09 +00:00
Android Build Coastguard Worker 21dc2e0822 Merge cherrypicks of ['googleplex-android-review.googlesource.com/23924146'] into udc-qpr1-release.
Change-Id: I51aa508675d6d0685115c9e7401fa9521e713902
2023-07-07 03:49:07 +00:00
Sunny Goyal f65391a871 Fixing crash when using multi-window
Bug: 290170868
Test: Verified on device
Flg: N/A
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:90bf1f429887ebc56566f0e10e62224661a57f9f)
Merged-In: If9129a3a47d651755cc99dfcfc0e9be69c2ca63c
Change-Id: If9129a3a47d651755cc99dfcfc0e9be69c2ca63c
2023-07-07 03:49:00 +00:00
Sunny Goyal 2da6e6d572 Merge "Fixing crash when using multi-window" into udc-qpr-dev am: 229b2efbae
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23924146

Change-Id: Ia921e7f93117a091252936429a955704d0c6a754
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-07 03:19:31 +00:00
Lucas Dupin 0d8883469c Merge "Updating materialColorSurfaceContainerHighest color access" into udc-qpr-dev am: 6a925d0769
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23917471

Change-Id: Ia940de6f17a4ab9a49aad38a8699bfbcfa9fd5cb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-07 03:16:48 +00:00
Sunny Goyal 229b2efbae Merge "Fixing crash when using multi-window" into udc-qpr-dev 2023-07-07 03:16:13 +00:00
Lucas Dupin 6a925d0769 Merge "Updating materialColorSurfaceContainerHighest color access" into udc-qpr-dev 2023-07-07 02:31:27 +00:00
Vinit Nayak e1f3df9308 Merge "Add support for taskbar phone 3 button seascape" into udc-qpr-dev am: ea12af617e am: fc85ff02fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23623277

Change-Id: If5dc5bc609448ce0282947887bb992cc0994bb3c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-07 00:52:17 +00:00
Vinit Nayak fc85ff02fb Merge "Add support for taskbar phone 3 button seascape" into udc-qpr-dev am: ea12af617e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23623277

Change-Id: I884e7f794448ec2f74cceb9e45be7ca12a9e718c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-07 00:18:29 +00:00
Vinit Nayak e1f8a0d6ed Merge "Reset split selection state when swiping to home" into udc-qpr-dev am: 781077ddff am: 3fbee6358c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23848172

Change-Id: I0b3ef687f4e1a9b9a4246e5d386f62ccfe1060eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-06 23:34:07 +00:00
Android Build Coastguard Worker 7dd9ba17a5 Snap for 10449897 from 7fedde35ad to udc-qpr1-release
Change-Id: If582f14ec372f10e15f71b9512c14659b4eeec65
2023-07-06 23:19:48 +00:00
Vinit Nayak ea12af617e Merge "Add support for taskbar phone 3 button seascape" into udc-qpr-dev 2023-07-06 23:18:07 +00:00
Vinit Nayak 3fbee6358c Merge "Reset split selection state when swiping to home" into udc-qpr-dev am: 781077ddff
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23848172

Change-Id: Id635fb83f23621542dbd0cb882e3c04870952792
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-06 22:59:50 +00:00
Sunny Goyal 90bf1f4298 Fixing crash when using multi-window
Bug: 290170868
Test: Verified on device
Flg: N/A
Change-Id: If9129a3a47d651755cc99dfcfc0e9be69c2ca63c
2023-07-06 15:23:06 -07:00
Vinit Nayak 781077ddff Merge "Reset split selection state when swiping to home" into udc-qpr-dev 2023-07-06 22:14:41 +00:00
Brian Isganitis 0acab2532d Provide AllApps item OnLongClickListener through ActivityContext.
This cleans up how alternative AllApps implementations such as Taskbar
and SecondaryDisplay override the default INSTANCE_ALL_APPS listener.
This change will also be helpful for Toast in Taskbar drag-n-drop.

Test: Manual
Bug: 289261756
Flag: n/a
Change-Id: I55eb881bcd1e210852d435a3ea2a6686ce0a9838
2023-07-06 22:12:20 +00:00
Vinit Nayak 24d9052574 Merge "Cleanup WorkProfileTest logs" into udc-qpr-dev am: f619155808 am: a79fabfed8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23907246

Change-Id: I1343d403bd0300a939a02dff59187b65e6f7744e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-06 22:09:10 +00:00
Vinit Nayak 5e2a2564e8 Reset split selection state when swiping to home
Bug: 276361926
Fixes: 238651489
Flag: ENABLE_SPLIT_FROM_WORKSPACE_TO_WORKSPACE

Change-Id: Ic1439561f37b50ebf9dfb99edbeece21520798b1
2023-07-06 15:08:05 -07:00
Winson Chung ccd359d76c Fix an issue with nav bar translations not being updated
- There are flows where the shared taskbar state is updated prior
  to being destroyed, and not updated to the latest values when
  the taskbar is recreated.

  ie.
    unfolded -> lock screen -> LauncherTaskbarUiController's
      mTaskbarInAppDisplayProgress[SYSUI_SURFACE_PROGRESS_INDEX]
      is set to 1 due to the notif shade (lockscreen) showing.
      This is written into TaskbarSharedState's sysuiStateFlags
      and inAppDisplayProgressMultiPropValues.
    fold -> TaskbarActivityContext is destroyed
    unlock -> TaskbarManager and TaskbarSharedState's
      sysuiStateFlags are updated while the device is folded
    unfold -> TaskbarActivityContext is recreated and initialized
      which restores from the shared state's
      inAppDisplayProgressMultiPropValues. It also tries to reapply
      the shared state's sysuiStateFlags, but this doesn't update
      inAppDisplayProgressMultiPropValues because the state's
      "enabled" state is not updated (default is no flag set, and
      lockscreen sysui state is not set anymore).
    -> The restored inAppDisplayProgressMultiPropValues value
       results in the wrong translation.

- Note that after the above, the NavbarButtonsViewController state
  is actually correct and reflects the SysUI state, but the
  LauncherTaskbarUiController state is wrong.  This CL tries to
  manually update the ui controller to the correct state when it
  is recreated.
- CL also fixes a separate issue where LauncherTaskbarUIController
  could potentially overwrite the saved state progresses while
  restoring them due to the state callback being called

Bug: 283346744
Test: Unfold -> Lockscreen -> Fold -> Unlock -> Unfold and ensure
      the buttons are translated correctly



Change-Id: I43e473faf4fa2a493b9705506e3755df8f6264e7
Signed-off-by: Winson Chung <winsonc@google.com>
2023-07-06 22:01:49 +00:00
Vinit Nayak a79fabfed8 Merge "Cleanup WorkProfileTest logs" into udc-qpr-dev am: f619155808
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23907246

Change-Id: I0cb9d11d9576d841eee304ccf67c4532873fab03
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-06 21:30:42 +00:00
Andrew Cole 0ce5977375 Removing screen record from test
The test is no longer flakey so we can remove the screen recording to save time during automated testing

Bug: b/258071914
Test: atest testUninstallFromAllApps
Change-Id: I6b044ad87b63e5035c2a88dc4f0181989e82f3b2
2023-07-06 14:25:39 -07:00
Vinit Nayak 15a9feb67f Add support for taskbar phone 3 button seascape
* Ignore orientation check from ag/22709055 for now,
that will be reverted. This causes recreateTaskbar() to
not run when folding the device

Bug: 274517647
Test: Tested 3 button nav in portrait/landscape/seascape
Flag: persist.wm.debug.hide_navbar_window
Change-Id: Ied02ead677d496b465c748257e32b7db5eb9580c
2023-07-06 13:58:30 -07:00
Vinit Nayak f619155808 Merge "Cleanup WorkProfileTest logs" into udc-qpr-dev 2023-07-06 20:44:26 +00:00
Liran Binyamin df95e1d26a Merge changes I93c2232d,I00daff83 into udc-qpr-dev am: 7fedde35ad am: b95ce55c7e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23912479

Change-Id: If0670d0bcc1dacdf098044ca48049eb57ad70ff2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-06 19:35:06 +00:00
Brian Isganitis 118a7db360 Merge "Only update local zss cache when Taskbar Toast already active." into udc-qpr-dev am: cdb56ea2e0 am: 2a180cb65c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23847631

Change-Id: Ie4542624efd7ddd24914046ded5c5c3becf1dc1e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-06 19:34:37 +00:00
Andrew Cole a9af3bd03d Updating materialColorSurfaceContainerHighest color access
For any view files applying the WidgetConatinerTheme via widgetsTheme they were incorrectly inheriting themes and skipping the AppTheme provided but only in light mode. In dark mode the WidgetContainerTheme.Dark was correctly inheriting the theme.

To avoid a risky theme update for all widgetsThemes we just modify the color accessor to use @color instead of ?attr as these colors should not be attributes AFAIKT

Bug: b/289305591
Test: Follow repro steps on the bug for smartspace
Change-Id: I26cc3239763f8eac3dfe5f094c6757692f46d1bc
2023-07-06 19:29:30 +00:00
Andrew Cole fe0a3b41d8 Updating materialColorSurfaceContainerHighest color access
For any view files applying the WidgetConatinerTheme via widgetsTheme they were incorrectly inheriting themes and skipping the AppTheme provided but only in light mode. In dark mode the WidgetContainerTheme.Dark was correctly inheriting the theme.

To avoid a risky theme update for all widgetsThemes we just modify the color accessor to use @color instead of ?attr as these colors should not be attributes AFAIKT

Bug: b/289305591
Test: Follow repro steps on the bug for smartspace
Change-Id: I26cc3239763f8eac3dfe5f094c6757692f46d1bc
2023-07-06 12:21:21 -07:00
Liran Binyamin b95ce55c7e Merge changes I93c2232d,I00daff83 into udc-qpr-dev am: 7fedde35ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23912479

Change-Id: I9b8a03fb45e1846818b1ae65e48f9d1062607e7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-06 18:55:37 +00:00
Brian Isganitis 2a180cb65c Merge "Only update local zss cache when Taskbar Toast already active." into udc-qpr-dev am: cdb56ea2e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23847631

Change-Id: Idd4a3a63bc6bf8dc47e43b5210aea2a66caa3559
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-06 18:54:41 +00:00
Liran Binyamin 7fedde35ad Merge changes I93c2232d,I00daff83 into udc-qpr-dev
* changes:
  Align the bubble bar with the taskbar in overview and app
  Update the bubble bar offset on Home
2023-07-06 18:40:27 +00:00
Winson Chung 6f7e15ff64 Ignore recents transition if there are no closing tasks
- In the case where Launcher calls startRecentsTransition while there
  are no other visible tasks, we should not be continuing with the
  transition as there are no tasks for Launcher to control.  This was
  previously handled in RecentsAnimationController in legacy
  transitions, but the safer fix is to ignore it on the Launcher
  side for this release.

Bug: 289175232
Test: Manually trigger empty targets and verify no issues
Change-Id: I3657c000cbc8c14c9ac989c2a57715515c96edb6
2023-07-06 18:09:52 +00:00
Brian Isganitis cdb56ea2e0 Merge "Only update local zss cache when Taskbar Toast already active." into udc-qpr-dev 2023-07-06 18:03:55 +00:00
Charlie Anderson 5ebecb830f Fixes home screen popup animation by removing unnecessary animation from ArrowPopup
Bug: 281004993
Test: manually
Flag: None
Change-Id: I072b61281fafd955557ccc4aabdde3a56eba9c15
2023-07-06 13:48:36 -04:00
Schneider Victor-tulias 84c66b69ff Add debug tracing Launcher's lifecycle callbacks
It is possible that SimpleActivityRule is not being properly notified of Launcher's creation in Platinum tests.

Flag: not needed
Bug: 289161193
Test: AddWidgetTest
Change-Id: I09947e7202129d9335f737dcd626f706de6dbf00
2023-07-06 10:44:16 -07:00
Liran Binyamin d76a9d9240 Align the bubble bar with the taskbar in overview and app
Whenever the bubble bar is unstashed and taskbar is present, the
translationY of the bubble bar is now adjusted so that it is aligned
with the taskbar.

Demo: http://recall/-/bJtug1HhvXkkeA4MQvIaiP/e3dlacSsSebQfEFTEt10JM

Fixes: 286247080
Test: Manual:
      - Add bubbles to the bubble bar.
      - On home observe the bar is aligned with hotseat
      - Switch to overview and observe the bar is aligned with taskbar
      - Go back to home. Bar aligns with hotseat.
      - Launch an app. Swipe up to load taskbar. Bar is aligned with taskbar.
      - Go back to home. Bar aligns with hotseat.
Change-Id: I93c2232d4862be4c97e36ddb6c9d680b01e555ad
2023-07-06 12:10:27 -04:00
Vinit Nayak a579db61b1 Prevent passing in GroupedTaskView when not animating split launch am: 8082401a83 am: 33b4935234
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23910406

Change-Id: Ibda7eac11e619668f631757980e4115ef869667b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-06 05:27:48 +00:00