Commit Graph

35150 Commits

Author SHA1 Message Date
Jerry Chang 331f46fab3 Accept snapshot list when cancelling recents animation
Bug: 200813008
Test: enter overview after activated split screen, observed task
      thumbnails showing with correct bounds after roation.
Change-Id: Ifea17d2c685d16db111c4fab88e131595254b9a5
2021-11-08 09:55:43 +08:00
Benno Lin 97d749833c Merge "Implement pressing back button and swiping back" into sc-v2-dev 2021-11-03 06:03:49 +00:00
Ryan Lin 0ee6940bd0 Merge "DO NOT MERGE Fix the cutout of magnification border" into sc-v2-dev 2021-11-03 05:24:27 +00:00
Vinit Nayak 874ea446c9 Merge "Revert "Align OverviewActionsView for 3 button taskbar"" into sc-v2-dev 2021-11-03 05:04:32 +00:00
ryanlwlin 571df892f7 DO NOT MERGE Fix the cutout of magnification border
If the window is unmagnifiable, it might cause the cutout of
magnification region.
To fix it, we set the flag when the touchable region is not the
entier window frame.

Bug: 196510717
Test: manual test on gestural and 3-button navigation
Change-Id: Ida2bb5bf120038ac9153e12790b93bdec195adbc
2021-11-03 10:50:09 +08:00
Benno Lin 6c00386c2b Implement pressing back button and swiping back
This CL implements a pressBack function to press back button or swiping
back in gesture navigation mode.

Bug: 199120092
Test: atest -c Launcher3Tests:com.android.launcher3.ui.TaplTestsLauncher3#testPressBack &&
    atest -c NexusLauncherTests:com.android.quickstep.TaplTestsQuickstep#testPressBack
Change-Id: I001cea17d09ae1ab7952d04ee394a2afa5bf1e67
2021-11-03 02:28:37 +00:00
Benno Lin 8f083ccce3 Merge "Update TAPL to operate on folder icons." into sc-v2-dev 2021-11-03 02:14:46 +00:00
Bill Lin 0c93448afa [automerger skipped] Merge "Allow One-handed gesture when densityDpi > 600" into sc-qpr1-dev am: 6648ab32bc -s ours
am skip reason: Merged-In Ic7ae10e8a47d26b9bb39ab80e22d591d74f89ae5 with SHA-1 2745327c5e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16169553

Change-Id: Ia89da83fc900da12748490859dcda1b3ee1d3617
2021-11-03 01:20:55 +00:00
Bill Lin 6648ab32bc Merge "Allow One-handed gesture when densityDpi > 600" into sc-qpr1-dev 2021-11-03 00:59:46 +00:00
Zak Cohen 427113fa58 Merge "Add temporary logging to try and debug: b/202414125" into sc-v2-dev 2021-11-02 23:33:31 +00:00
Vinit Nayak 3fabe054c2 Revert "Align OverviewActionsView for 3 button taskbar"
This reverts commit 97d64ea8a1.

Reason for revert: b/204891006

Change-Id: I9d40a5c8c9bce6b818779ebaf748bb9bd9231caf
2021-11-02 22:08:33 +00:00
Zak Cohen 21f6189cd5 Add temporary logging to try and debug: b/202414125
Bug: 202414125
Test: Local
Change-Id: I641f9877972f3f584e5fc618d89c65c52f0d1da0
2021-11-02 14:17:15 -07:00
Alex Chau 27794e8fa3 Merge "Add logging of draw / DeviceProfile params for a crash" into sc-v2-dev 2021-11-02 18:26:58 +00:00
Alina Zaidi 6180273e1f Merge "Use equals() to compare UserHandle when building LauncherAtom#ItemInfo." into sc-v2-dev 2021-11-02 16:27:56 +00:00
Alina Zaidi 08c3e8f526 Use equals() to compare UserHandle when building LauncherAtom#ItemInfo.
Bug: 204756057
Test: Manually verified correct behave through logs
Change-Id: Ic314e38978893984bac89988bfc3229a21d0214e
2021-11-02 14:10:37 +00:00
Alex Chau 05659a3d10 Add logging of draw / DeviceProfile params for a crash
Bug: 203530620
Test: manual
Change-Id: I376157ee3f688b16a05b59a0093f06519533f6c7
2021-11-02 13:11:05 +00:00
Alex Chau a8a51394f5 Merge "Adding screen record for a flake" into sc-v2-dev 2021-11-02 11:31:52 +00:00
Vinit Nayak ac24e7f6f0 Merge "Align OverviewActionsView for 3 button taskbar" into sc-v2-dev 2021-11-02 05:37:45 +00:00
Vinit Nayak a216ad2c36 Merge "Check if RemoteAnimationTargets apps are present" into sc-v2-dev 2021-11-02 05:37:13 +00:00
Bill Lin 2b74e3c290 Allow One-handed gesture when densityDpi > 600
This logic was aim to prevent tablet device enable One-handed gesture
so added displayInfo.densityDpi < DisplayMetrics.DENSITY_600 before.

However, it seems this densityDpi=600 does not able to represent to
tablet device, instead we already have system property
"ro.support_one_handed_mode" which provides feasibility to config false
on tablet project, as the reason we can safe to remove this condition.

Bug: 203936659
Test: adb shell wm density 600 , and observe OHM gesture is available
Test: atest WMShellUnitTests
Change-Id: Ic7ae10e8a47d26b9bb39ab80e22d591d74f89ae5
Merged-In: Ic7ae10e8a47d26b9bb39ab80e22d591d74f89ae5
2021-11-02 02:50:09 +00:00
Vinit Nayak 97d64ea8a1 Align OverviewActionsView for 3 button taskbar
Bug: 189807374
Change-Id: I028ae31b98e28bc372f0148a28755d067fe50678
2021-11-02 01:13:02 +00:00
Jon Miranda da02250c29 Adding screen record for a flake
Test: presubmit
Bug: 202735477
Change-Id: I4e1d2bc3650e2f52767f57e9b00c9c2bf7974489
2021-11-01 14:25:35 -07:00
TreeHugger Robot 651b93bb53 Merge "Do not use shared lib resources" into sc-v2-dev 2021-11-01 20:40:43 +00:00
Tony Wickham c29f5441da Merge "Reapply TaskViewSimulator in onApplyWindowInsets()" into sc-v2-dev 2021-11-01 20:17:53 +00:00
Brian Isganitis f0fa83e988 Merge "Decrease character limit for "Home settings" to 20." into sc-v2-dev 2021-11-01 20:00:32 +00:00
Jonathan Miranda 9b85616119 Merge "Remove PROTOTYPE_APP_CLOSE feature flag and associated code." into sc-v2-dev 2021-11-01 18:35:44 +00:00
Vinit Nayak 6e5f4e3184 Merge "Clean up RemoteTargetHandles when RecentsAnimation ends" into sc-v2-dev 2021-11-01 18:01:37 +00:00
Tony Wickham d48fbecd1a Merge "Add null check when settling on LAST_TASK" into sc-v2-dev 2021-11-01 16:22:15 +00:00
Thales Lima 33f9de0225 Merge "add kotlin support for launcher" into sc-v2-dev 2021-11-01 16:03:58 +00:00
Nick Chameyev 5f11bf60a8 Do not use shared lib resources
Temporary removes usages of SysUI shared
resources as it leads to crashes in Launcher
tests.

Bug: 204727471
Test: install launcher, try autorotate suggestion
Change-Id: I1e3c1f5b331a22a753acc3fe0ee544d50fba5c18
2021-11-01 15:49:54 +00:00
Nick Chameyev 0288d2e8bb Move floating rotation button handling to Launcher
Moves handling of floating rotation button when navigation
bar is not created to the launcher. This button was not
showing when taskbar is visible as it was initialized in
navigation bar (which is not created for large screens).

Bug: 200103245
Test: rotate phone when autorotate disabled on inner screen
Test: showing rotate suggestion when gesture nav enabled/disabled
Change-Id: I13dd555bcd811f1524be7ab9ad51b2b012b3b749
2021-11-01 10:36:34 +00:00
TreeHugger Robot e6a04336eb [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: 047cb6c114 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16152635

Change-Id: Ia365e3008cb3e6476c4eb6ae6e13d2f069877007
2021-11-01 06:16:46 +00:00
Bill Yi 14ef2d7650 [automerger skipped] [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: eceff103d4 am: 5b24688fc3 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16152630

Change-Id: I0ca3cca154f3700286d9b1e80c4660c4940b59c3
2021-11-01 06:16:23 +00:00
TreeHugger Robot 08e6d3a0f4 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-11-01 05:55:53 +00:00
TreeHugger Robot d75cdbbc9e Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-11-01 05:55:37 +00:00
TreeHugger Robot 047cb6c114 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-11-01 05:55:36 +00:00
Hyunyoung Song f45ec6dc1d Merge "[Test] Introduce tracing to identify why pm create-user is failing" into sc-v2-dev 2021-10-31 21:59:09 +00:00
Bill Yi 9252143fb6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifdcb1408fd64a714b08364c9e2106ade4c4a6fd7
2021-10-30 01:23:53 +00:00
Bill Yi dee85291d4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9a64b39bfc779dc7c8261f0571aee1b4e53ea605
2021-10-30 01:20:28 +00:00
Bill Yi 9dda7b700b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia72585210d668abd01bdce2556e1cf6265af4f8e
2021-10-30 01:19:55 +00:00
Bill Yi 5b24688fc3 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: eceff103d4
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16152630

Change-Id: Ic62c29fb295ec8405db1a6cf454d23f5558ce102
2021-10-30 01:19:29 +00:00
Bill Yi eceff103d4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1fb8644a05495e312925301f254e67ba58cd50e9
2021-10-30 01:19:24 +00:00
Jon Miranda 029a644a6e Remove PROTOTYPE_APP_CLOSE feature flag and associated code.
Flag was never enabled, safe to remove.

Bug: 200999899
Test: manual
Change-Id: Ie2646d8c4b9a1c40fac1bfd7dadf4ec714171aec
2021-10-29 16:07:29 -07:00
Tony Wickham 2ca7e2695c Add null check when settling on LAST_TASK
Test: N/A
Fixes: 203237855
Change-Id: I511fde0ba3f22720ed1fe29769c97a3207a98a4b
2021-10-29 14:15:53 -07:00
Tony Wickham d71a4288cf Merge "Recreate taskbar when dark mode changes" into sc-v2-dev 2021-10-29 17:13:57 +00:00
Thales Lima 26f44911a6 add kotlin support for launcher
Bug: 193432925
Test: click on the app icon and check logcat
Change-Id: I2ca4d57105fe4e1b1dfc6c968a7c1bbd3cbd2151
2021-10-29 15:40:41 +00:00
Tony Wickham 5a5a926945 Recreate taskbar when dark mode changes
Also dispatch sysui flags to all controllers upon recreate, not just NavbarButtonsViewController. Additionally, tell the controllers to skip the animation due to the flag changes if it's fromInit.

Test: Enable themed icons, switch dark theme in quick settings, ensure taskbar updates
Fixes: 204403933
Change-Id: Ic43a50cf0456175f9beba5c29360440f051cbd2d
2021-10-28 17:49:03 -07:00
Becky Qiu 75c97f534b [OneSearch] Increase API version number for the one search plugin.
Bug: 199289915
Test: manual
Change-Id: I540730e067ce70956d2c3c8bb6336e8b6bd97713
2021-10-28 17:47:45 -07:00
TreeHugger Robot e9652c9a63 Merge "[OneSearch] Add onesearch plugin api to trigger image from URL." into sc-v2-dev 2021-10-29 00:36:42 +00:00
Tony Wickham 00841576d4 Merge "Fix NPE when TaskView isn't attached to RecentsView" into sc-v2-dev 2021-10-28 22:40:01 +00:00