Commit Graph
61273 Commits
Author SHA1 Message Date
Nick Chameyev 0effcbca84 [Unfold animation] Do not preemptively start the animation if it has run already
Currently if we open an app, unfold the device and then go to home
screen we will start the unfold animation preemptively in Launcher
because Launcher activity will receive updated configuration change
(where isTablet = true) only after going back to home screen, not
when unfolding the device.

This causes a problem because SystemUI won't send the unfold animation
events after going back home as the animation has already run, so we
end up with wrongly started animation in Launcher.

This CL fixes the issues by checking if SystemUI has finished the
animation (or if it is currently running) to avoid preemptive animation
start in this case. This is done by subscribing to the original
unfold transition progress provider which emits progress events
sent through IPC from SystemUI.

Bug: 285150685
Bug: 293131586
Test: open an app on folded screen, unfold, go to home screen =>
  check that icons are not squished
Test: fold/unfold when launcher is open
(cherry picked from commit 6d756970e7)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2e53f5ef97a02d25f508774e82985e24dc2f4d2d)
Merged-In: Ic437ff4d19cbd5764635f3007d99880622150f5b
Change-Id: Ic437ff4d19cbd5764635f3007d99880622150f5b
2023-08-12 00:26:39 +00:00
Android Build Coastguard Worker 3f6994162f [coastguard skipped] Merge sparse cherrypicks from sparse-10615833-L02900000962494793 into udc-release.
COASTGUARD_SKIP: Ibd4d143838b7cafcfd85a40541295c3332b7be08
COASTGUARD_SKIP: Ib4e0c5d297311677bdedd0f05fb35d848359abc7

Change-Id: Ib309f0d869c53a73d5d4632c6f3de72259ef8a96
2023-08-10 02:10:30 +00:00
Android Build Coastguard Worker d7da38e470 Merge cherrypicks of ['googleplex-android-review.googlesource.com/24377484'] into sparse-10615833-L02900000962494793.
SPARSE_CHANGE: Ibd4d143838b7cafcfd85a40541295c3332b7be08

Change-Id: Ib4e0c5d297311677bdedd0f05fb35d848359abc7
2023-08-10 02:05:53 +00:00
Neha Jain eb8fb49a96 Revert "Log appear animation's scale factor"
DO NOT SUBMIT
Revert submission 24154592-cherrypick-log-scale-factor-p3v8iq0onb

Reason for revert: b/294401542

Reverted changes: /q/submissionid:24154592-cherrypick-log-scale-factor-p3v8iq0onb
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:306ca475386d61367a0b557b8f415eb5bfce5cc9)
Merged-In: Ibd4d143838b7cafcfd85a40541295c3332b7be08
Change-Id: Ibd4d143838b7cafcfd85a40541295c3332b7be08
2023-08-10 02:05:18 +00:00
Android Build Coastguard Worker c386a52d48 [coastguard skipped] Merge sparse cherrypicks from sparse-10615697-L60900000962405601 into udc-release.
COASTGUARD_SKIP: I8eadeecea932cad65ff512b1dd944f1e2f0dcde4
COASTGUARD_SKIP: Ic437ff4d19cbd5764635f3007d99880622150f5b
COASTGUARD_SKIP: Ic33dc94806b838a03a2203bdd5701a1eeaeeb7bf

Change-Id: I5ee9152089d621518d605a1380b39d3bee6cc2ab
2023-08-05 01:40:17 +00:00
Android Build Coastguard Worker 6f007458b5 Merge cherrypicks of ['googleplex-android-review.googlesource.com/23447960', 'googleplex-android-review.googlesource.com/24154592'] into sparse-10615697-L60900000962405601.
SPARSE_CHANGE: Ic437ff4d19cbd5764635f3007d99880622150f5b
SPARSE_CHANGE: Ic33dc94806b838a03a2203bdd5701a1eeaeeb7bf

Change-Id: I8eadeecea932cad65ff512b1dd944f1e2f0dcde4
2023-08-05 01:35:04 +00:00
Fengjiang Li 5038853cd7 Log appear animation's scale factor
Test: Grabbed a bug report b/291974797
Flag: N/A
Bug: 290320302
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2303acd7d4272b063352598d4ec65c5b92e0f0f7)
Merged-In: Ic33dc94806b838a03a2203bdd5701a1eeaeeb7bf
Change-Id: Ic33dc94806b838a03a2203bdd5701a1eeaeeb7bf
2023-08-05 01:33:46 +00:00
Nick Chameyev ed1503317c [Unfold animation] Do not preemptively start the animation if it has run already
Currently if we open an app, unfold the device and then go to home
screen we will start the unfold animation preemptively in Launcher
because Launcher activity will receive updated configuration change
(where isTablet = true) only after going back to home screen, not
when unfolding the device.

This causes a problem because SystemUI won't send the unfold animation
events after going back home as the animation has already run, so we
end up with wrongly started animation in Launcher.

This CL fixes the issues by checking if SystemUI has finished the
animation (or if it is currently running) to avoid preemptive animation
start in this case. This is done by subscribing to the original
unfold transition progress provider which emits progress events
sent through IPC from SystemUI.

Bug: 285150685
Bug: 293131586
Test: open an app on folded screen, unfold, go to home screen =>
  check that icons are not squished
Test: fold/unfold when launcher is open
(cherry picked from commit 6d756970e7)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2e53f5ef97a02d25f508774e82985e24dc2f4d2d)
Merged-In: Ic437ff4d19cbd5764635f3007d99880622150f5b
Change-Id: Ic437ff4d19cbd5764635f3007d99880622150f5b
2023-08-05 01:33:38 +00:00
Android Build Coastguard Worker 12b87a800c [coastguard skipped] Merge sparse cherrypicks from sparse-10615697-L90400000962407107 into udc-release.
COASTGUARD_SKIP: I99fdaa2dd2a163c46ea9003394a626789ea6fbb4
COASTGUARD_SKIP: Ic437ff4d19cbd5764635f3007d99880622150f5b
COASTGUARD_SKIP: Ic33dc94806b838a03a2203bdd5701a1eeaeeb7bf

Change-Id: Ie61b3e2cd90ce0fa306e3b2fec4b66ef5a11c1f4
2023-08-05 00:59:50 +00:00
Android Build Coastguard Worker 5b37731458 Merge cherrypicks of ['googleplex-android-review.googlesource.com/23447960', 'googleplex-android-review.googlesource.com/24154592'] into sparse-10615697-L90400000962407107.
SPARSE_CHANGE: Ic437ff4d19cbd5764635f3007d99880622150f5b
SPARSE_CHANGE: Ic33dc94806b838a03a2203bdd5701a1eeaeeb7bf

Change-Id: I99fdaa2dd2a163c46ea9003394a626789ea6fbb4
2023-08-05 00:55:13 +00:00
Fengjiang Li 30471b4d6c Log appear animation's scale factor
Test: Grabbed a bug report b/291974797
Flag: N/A
Bug: 290320302
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2303acd7d4272b063352598d4ec65c5b92e0f0f7)
Merged-In: Ic33dc94806b838a03a2203bdd5701a1eeaeeb7bf
Change-Id: Ic33dc94806b838a03a2203bdd5701a1eeaeeb7bf
2023-08-05 00:53:36 +00:00
Nick Chameyev 8d1e9f08df [Unfold animation] Do not preemptively start the animation if it has run already
Currently if we open an app, unfold the device and then go to home
screen we will start the unfold animation preemptively in Launcher
because Launcher activity will receive updated configuration change
(where isTablet = true) only after going back to home screen, not
when unfolding the device.

This causes a problem because SystemUI won't send the unfold animation
events after going back home as the animation has already run, so we
end up with wrongly started animation in Launcher.

This CL fixes the issues by checking if SystemUI has finished the
animation (or if it is currently running) to avoid preemptive animation
start in this case. This is done by subscribing to the original
unfold transition progress provider which emits progress events
sent through IPC from SystemUI.

Bug: 285150685
Bug: 293131586
Test: open an app on folded screen, unfold, go to home screen =>
  check that icons are not squished
Test: fold/unfold when launcher is open
(cherry picked from commit 6d756970e7)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2e53f5ef97a02d25f508774e82985e24dc2f4d2d)
Merged-In: Ic437ff4d19cbd5764635f3007d99880622150f5b
Change-Id: Ic437ff4d19cbd5764635f3007d99880622150f5b
2023-08-05 00:53:27 +00:00
Android Build Coastguard Worker 7a9fd85957 [coastguard skipped] Merge sparse cherrypicks from sparse-10609355-L16700000962392049 into udc-release.
COASTGUARD_SKIP: Ic437ff4d19cbd5764635f3007d99880622150f5b
COASTGUARD_SKIP: I787658a004873e5650cf885483528f867a00b7ab

Change-Id: Ia56018de842e6167a86d56ba0dbd5fedaf24d6a7
2023-08-04 02:12:56 +00:00
Android Build Coastguard Worker ca249f0a51 Merge cherrypicks of ['googleplex-android-review.googlesource.com/23447960'] into sparse-10609355-L16700000962392049.
SPARSE_CHANGE: Ic437ff4d19cbd5764635f3007d99880622150f5b

Change-Id: I787658a004873e5650cf885483528f867a00b7ab
2023-08-04 02:07:02 +00:00
Nick Chameyev 8e263cb930 [Unfold animation] Do not preemptively start the animation if it has run already
Currently if we open an app, unfold the device and then go to home
screen we will start the unfold animation preemptively in Launcher
because Launcher activity will receive updated configuration change
(where isTablet = true) only after going back to home screen, not
when unfolding the device.

This causes a problem because SystemUI won't send the unfold animation
events after going back home as the animation has already run, so we
end up with wrongly started animation in Launcher.

This CL fixes the issues by checking if SystemUI has finished the
animation (or if it is currently running) to avoid preemptive animation
start in this case. This is done by subscribing to the original
unfold transition progress provider which emits progress events
sent through IPC from SystemUI.

Bug: 285150685
Bug: 293131586
Test: open an app on folded screen, unfold, go to home screen =>
  check that icons are not squished
Test: fold/unfold when launcher is open
(cherry picked from commit 6d756970e7)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2e53f5ef97a02d25f508774e82985e24dc2f4d2d)
Merged-In: Ic437ff4d19cbd5764635f3007d99880622150f5b
Change-Id: Ic437ff4d19cbd5764635f3007d99880622150f5b
2023-08-04 02:05:36 +00:00
Android Build Coastguard Worker bff4a889c0 Merge cherrypicks of ['googleplex-android-review.googlesource.com/24231346'] into udc-release.
Change-Id: I8da5ab27f2c02cdbfe0869778bd231ae60f07637
2023-08-01 01:09:58 +00:00
Sebastián Franco 628f74bd71 Disable FOLDABLE_SINGLE_PAGE
The functionality should go back to the same as with phones.
There shouldn't be issues with the reorder or similar behavior since we
are switching form using the MultipageCellLayout to the regular
CellLayout.

The things we need to pay attention to is the the behavior of having two
panels like adding the right number of panels when loading (folding, unfolding and rotating).

Bug: 291822492
Test: ReorderWidgets
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8d606e89d3511a6f65e3a80add97c0fae580fb97)
Merged-In: I903873e32f35c5ee9e0f3da8581a37d4087d021f
Change-Id: I903873e32f35c5ee9e0f3da8581a37d4087d021f
2023-08-01 01:09:35 +00:00
Android Build Coastguard Worker e55a79dab0 Merge cherrypicks of ['googleplex-android-review.googlesource.com/24156953'] into udc-release.
Change-Id: I71b8f9eb54de40db3e5f2f7ced6c44d1d817e75d
2023-07-26 00:57:32 +00:00
randypfohl c59599dc19 Removing obsolete call to start home activity with shell transitions
- The second start activity was causing issues with 3p launchers which
  may not expect another new intent (ie. if it handles gestures at
  the bottom of the screen).  We can't completely remove this logic
  because for button navigation we don't want to fall through to the
  launch-next-task animation below, but we can can continue to
  finish the recents animation immediately.
- With shell transitions, leashes for opening apps are always hidden
  by default so when transitioning to a 3p launcher from
  RecentsActivity we also need to show the surface if we want to
  animate it in

Bug: 289609734
Test: Set 3p Launcher as default, in both gesture & button navigation
      - Go from 3p home -> overview, then overview -> 3p home
      - Go from app -> 3p home
      - Go from app -> overview, then overview -> 3p home
      - Quickswitch from app

Signed-off-by: Winson Chung <winsonc@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2b3dc6f73007f8b7d97ae2972e37c5d055659c8b)
Merged-In: I6875083931de63a8097d23d180553885ed7cfb01
Change-Id: I6875083931de63a8097d23d180553885ed7cfb01
2023-07-26 00:57:07 +00:00
Android Build Coastguard Worker a31ca81d53 [coastguard skipped] Merge sparse cherrypicks from sparse-10502572-L39700000962039696 into udc-release.
COASTGUARD_SKIP: I26138ee9f8e7cdb45cafe2446dc4d1e3d6d8347f
COASTGUARD_SKIP: I38720247bf3f5ca08e59bcc570558e456c88c411

Change-Id: I40c5312a682bc2800e6cc6f5a6d2bcc3cf0eac16
2023-07-18 16:59:10 +00:00
Android Build Coastguard Worker 89d4949311 Merge cherrypicks of ['googleplex-android-review.googlesource.com/24056558'] into sparse-10502572-L39700000962039696.
SPARSE_CHANGE: I26138ee9f8e7cdb45cafe2446dc4d1e3d6d8347f

Change-Id: I38720247bf3f5ca08e59bcc570558e456c88c411
2023-07-18 16:49:52 +00:00
fbaron 8a18bc0f12 Fix inability to remove or interact with folder when removing 2nd item from folder
Fix: 289960317
Test: Verify in unfolded felix that going from 2 icon folder and dragging 2nd icon out of folder lets you open the app that remains where the folder was
Test: Verify in unfolded felix that going from 2 icon folder and dragging 2nd icon into remove droptarget removes the folder and turns it into a single clickable icon
flag: no flag
(cherry picked from commit 5a7ea3069b)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:326ec97ab6a4d348708830cd2860d4dd90a59039)
Merged-In: I26138ee9f8e7cdb45cafe2446dc4d1e3d6d8347f
Change-Id: I26138ee9f8e7cdb45cafe2446dc4d1e3d6d8347f
2023-07-18 16:49:12 +00:00
Android Build Coastguard Worker e126440f8b Merge cherrypicks of ['googleplex-android-review.googlesource.com/24056558'] into udc-release.
Change-Id: Ibee4cd36f6f40b94108e3bfeec99afd25265f4cd
2023-07-18 04:35:53 +00:00
fbaron faf861aae5 Fix inability to remove or interact with folder when removing 2nd item from folder
Fix: 289960317
Test: Verify in unfolded felix that going from 2 icon folder and dragging 2nd icon out of folder lets you open the app that remains where the folder was
Test: Verify in unfolded felix that going from 2 icon folder and dragging 2nd icon into remove droptarget removes the folder and turns it into a single clickable icon
flag: no flag
(cherry picked from commit 5a7ea3069b)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:326ec97ab6a4d348708830cd2860d4dd90a59039)
Merged-In: I26138ee9f8e7cdb45cafe2446dc4d1e3d6d8347f
Change-Id: I26138ee9f8e7cdb45cafe2446dc4d1e3d6d8347f
2023-07-18 04:32:08 +00:00
Android Build Coastguard Worker 16d8dff238 Merge cherrypicks of ['googleplex-android-review.googlesource.com/24060456'] into udc-release.
Change-Id: Ib62cd5af6d42a792b593a21fa094727717f21f73
2023-07-15 07:06:59 +00:00
Sebastian Franco e79837c0f6 Creating a correctly populated mOccupied grid when reordering on foldables
On ag/21680045 I copy the previous mOccupied but the right thing to do is to
create a new one with all the views information.

Some test stoped running inadvertently that's why we didn't catch this issue.

There is a separate cl with the test to ensure we can catch it later on.

Fix: 289584301
Test: ReorderWidgets
(cherry picked from commit 1c5514b566)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:52d9d9780fb5a83302dd6fb3d875635a2ee57e1c)
Merged-In: I27b5a6e38a556d1c73ff8fbbdd552da6045e5b64
Change-Id: I27b5a6e38a556d1c73ff8fbbdd552da6045e5b64
2023-07-15 07:01:15 +00:00
Android Build Coastguard Worker 480a5dd49e Merge cherrypicks of ['googleplex-android-review.googlesource.com/24030571'] into udc-release.
Change-Id: I96ee3409cc1600d26d2e97e83bbfffa9b441e74e
2023-07-14 01:59:58 +00:00
Becky Qiu ca4e39d402 Fix the issue that on tablet/unfold, the allapps background color is wrong.
As the new spec, it should use materialColorSurfaceDim for all devices.

Bug: 288493929
Test: manual, before: https://screenshot.googleplex.com/7YxpFGekwm6Gz6N, after: https://screenshot.googleplex.com/44Gr2dBfWSct7FK
Flag: no flag needed.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:aa6612d3731a3e98f716747b0ede473e3bbca161)
Merged-In: Ic33d9a758fe9fbaa0f735c874a545df711a18e2f
Change-Id: Ic33d9a758fe9fbaa0f735c874a545df711a18e2f
2023-07-14 01:59:24 +00:00
Android Build Coastguard Worker 24c9dcd812 Merge cherrypicks of ['googleplex-android-review.googlesource.com/23796565'] into udc-release.
Change-Id: Ib6a1e8efd02894eec3e2dcb8be68dd9371176e09
2023-07-11 00:40:47 +00:00
Schneider Victor-tulias e0600c6bca Handle onFlingFinished onRecentsAnimationStart
If the onRecentsAnimationStart callback runs after the user lifts their finger and onFlingFinished runs, then onFlingFinished never has another chance to run, leaving the user trapped in a state where the launcher is not started and the AllSetActivity is still present but invisible. Reverted to allow onFlingFinished to run onRecentsAnimationStart to handle this edge case.

Flag: not needed
Fixes: 285194839
Test: Ran AllSetActivty with a delay in onRecentsAnimationStart
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1b2c2e694c6e233057570d3e8b4e5a0aa9c0c51a)
Merged-In: I33ce5c1d4955b34d4b77d3b740dc599621bd4ed1
Change-Id: I33ce5c1d4955b34d4b77d3b740dc599621bd4ed1
2023-07-11 00:39:11 +00:00
Android Build Coastguard Worker ba3ae8d5fb Merge cherrypicks of ['googleplex-android-review.googlesource.com/23909000', 'googleplex-android-review.googlesource.com/23923806', 'googleplex-android-review.googlesource.com/23920481'] into udc-release.
Change-Id: I8ff9da2a0d21330d22a61bd9d4a566854f935d4a
2023-07-09 10:04:15 +00:00
Andrew Cole fb8a789fc9 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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a9af3bd03db3c19a07a4015471ee5c83d364fd36)
Merged-In: I26cc3239763f8eac3dfe5f094c6757692f46d1bc
Change-Id: I26cc3239763f8eac3dfe5f094c6757692f46d1bc
2023-07-09 10:03:35 +00:00
Winson Chung 1672e8a367 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



Signed-off-by: Winson Chung <winsonc@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ccd359d76c7f42d4fc799f19d54a66c7c2fa462a)
Merged-In: I43e473faf4fa2a493b9705506e3755df8f6264e7
Change-Id: I43e473faf4fa2a493b9705506e3755df8f6264e7
2023-07-09 10:03:30 +00:00
Winson Chung 1f6a5f50e5 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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6f7e15ff644bac2f11ecb779030255efebc18885)
Merged-In: I3657c000cbc8c14c9ac989c2a57715515c96edb6
Change-Id: I3657c000cbc8c14c9ac989c2a57715515c96edb6
2023-07-09 10:03:24 +00:00
Android Build Coastguard Worker 479b6e75c0 Merge cherrypicks of ['googleplex-android-review.googlesource.com/23852178', 'googleplex-android-review.googlesource.com/23845422'] into udc-release.
Change-Id: Id2f13f18793e0a6b6c00368be8cf2de6cf329092
2023-06-30 23:27:52 +00:00
Jagrut Desai 7cc6f65011 Taskbar All Apps Shortcut Menu Acccessibility Focus
Bug: 280657266
Test: manual
Flag: not needed
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:53d953ccd24cd378418d9bd8c9964589fb1af44a)
Merged-In: I2426636067ce3635b8b24b9f5d093dad7d9ddf4c
Change-Id: I2426636067ce3635b8b24b9f5d093dad7d9ddf4c
2023-06-30 23:26:29 +00:00
Jon Miranda df537ccdb7 Cleans up bad state when transient taskbar shows on home.
Bug: 279514548
Test: open transparent activity on top of launcher
      unstash taskbar
      go home
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3bad3ebaad529a8be587b9c0eae61faf87ea8505)
Merged-In: I13ab79b334e1f8feda441a82cc4d035c0142f513
Change-Id: I13ab79b334e1f8feda441a82cc4d035c0142f513
2023-06-30 23:26:22 +00:00
Android Build Coastguard Worker 4fa7d26749 Merge cherrypicks of ['googleplex-android-review.googlesource.com/23833485', 'googleplex-android-review.googlesource.com/23823197'] into udc-release.
Change-Id: I20b6989131358a596810ae6834845dea6885ede3
2023-06-30 03:20:11 +00:00
Mateusz Cicheński 170ad5b4d6 Remove the keep clear areas XML tag from Hotseat
It reports its size through SystemUiProxy and this tag causes it to
report the region twice. Additionally upon screen rotation the value
is getting updated with a delay, so for a moment two keep clear areas
for Launcher are present - one from the previous orientation (on the
side), and one from the current orientation (matching the proxy value
in unrestrictedKeepClearAreas).

Bug: 285242520
Test: before http://recall/-/ekEuGtt9d9HWqkUtAzpHx8/cLtiXGYUyItm2kNCCEkkWA
Test: after http://recall/-/ekEuGtt9d9HWqkUtAzpHx8/iPs6fwdSXG3TE0IERmxA8
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b5b218eea929f719703ca91df6b9868645909f4c)
Merged-In: I40dfe08680c944f2be5db0f6b15515492f409565
Change-Id: I40dfe08680c944f2be5db0f6b15515492f409565
2023-06-30 03:17:36 +00:00
Jerry Chang 4fdf5684fe Polish home-key from split to pip transition
Includes WINDOWING_MODE_MULTI_WINDOW closing target to the condition of
playing fallback animation. So the remaining splitting task won't be
play with iconview animation when home-key to auto-pip consumed another
splitting task in pip transition handler.

Bug: 281476331
Test: repro steps of the bug
Test: pass existing tests
Video: http://recall/-/fLARJNt42LVxc3tt86SneW/eelqATeE1REoOtOEDxeDVR
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:365105118220b218005225b038142273524877cc)
Merged-In: If05d8841a6a940e61f71683422ef1a3d4e3597c7
Change-Id: If05d8841a6a940e61f71683422ef1a3d4e3597c7
2023-06-30 03:17:29 +00:00
Android Build Coastguard Worker e3fd35678d Merge cherrypicks of ['googleplex-android-review.googlesource.com/23785437'] into udc-release.
Change-Id: I6467407d5d49cc120e53b798e3772dfd0a0d8851
2023-06-29 03:40:21 +00:00
Winson Chung 5cdfa120df Workaround for handling the restart of an already visible task
- If a task is already visible, then startActivity is a no-op and the
  remote transition that launcher expects to run is not started. As a
  workaround (until restarts are an actual transition), listen for
  the case where a task is restarted and invoke the end callbacks

Fixes: 286016555
Test: Repro steps on the bug
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:57c2a79e47bc583306bd77ea3039d821a8d33dde)
Merged-In: Iec3ab97c8817a5e95399cec90f891d65f369d234
Change-Id: Iec3ab97c8817a5e95399cec90f891d65f369d234
2023-06-29 03:39:15 +00:00
Android Build Coastguard Worker 64e91ffc50 Merge cherrypicks of ['googleplex-android-review.googlesource.com/23793397', 'googleplex-android-review.googlesource.com/23792388'] into udc-release.
Change-Id: I64c2a75726b8f2934f42e0ef7952e7c477e0b7cf
2023-06-28 01:29:06 +00:00
Jerry Chang 8a7181d45e Prevent exception when quick switching between two split pairs
When switching in between two split pairs just quick enough, it is
possible to send the second entering split transition while it is
animating the first entering split transition which is merged to a
recents-during-split transition. The split parents might not be
collected into the second transition because the split parents are
already visible at that time, and there is no recents transition to
merge to. So updates to not throwing when there is no split parent when
composing a recents-to-split animation.

Bug: 236226779
Test: repro steps of the bug and the Launcher won't throw
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:97eb471f2efda1eccce7eba8c68301b2fa34c5e7)
Merged-In: I3a595722721186e8de7d60c9fb8c099ec799804a
Change-Id: I3a595722721186e8de7d60c9fb8c099ec799804a
2023-06-28 01:27:37 +00:00
Winson Chung 18f815a7fd Restore strong reference to animation runner
- The remote animation factory needs to be strongly referenced since
  the only other reference is a weakly held one from
  LauncherAnimationRunner, and if a gc happens in between starting
  the animation and the onAnimationStart() callback, then the
  animation will not play.

Fixes: 284106887
Test: Force a gc after creating a remote app launch animation and ensure
      that the runner still exists when the animation starts
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6cfe2e6cbe52f5fc9aa0eb94afaeb7679810cc13)
Merged-In: I5f584451b41c666916801b8ea0cb470c7ab9fc51
Change-Id: I5f584451b41c666916801b8ea0cb470c7ab9fc51
2023-06-28 01:27:30 +00:00
Android Build Coastguard Worker d5f28d79b3 Merge cherrypicks of ['googleplex-android-review.googlesource.com/23810649'] into udc-release.
Change-Id: I082dd44b10ac964dba6c068495b2033d4c0e3833
2023-06-27 00:43:13 +00:00
Winson Chung 5148c096e1 Fix NPE due to invalid RecentsView access
Fixes: 288829919
Test: N/a, reorganizing code behind null check
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:cdf410f1349edf3451e1a8af64ea2d8cd676ffaa)
Merged-In: I9efe48cab239b521f7e729af06706c352be2499c
Change-Id: I9efe48cab239b521f7e729af06706c352be2499c
2023-06-27 00:42:01 +00:00
Android Build Coastguard Worker ef3f4df825 Snap for 10367700 from 9f566dec6b to udc-release
Change-Id: I4bde0673b0f721df8758d53919240a8acc6ec908
2023-06-22 23:18:30 +00:00
Jagrut Desai 9f566dec6b Merge "Suspend immersive mode autohide while pending transient taskbar timeout" into udc-dev 2023-06-22 18:06:23 +00:00
Android Build Coastguard Worker 6fae36a15b Snap for 10360508 from d827387ffd to udc-release
Change-Id: Id558ea32d8c77b1d81b55be1a6565a79d36c027f
2023-06-21 23:19:30 +00:00