Commit Graph

49925 Commits

Author SHA1 Message Date
TreeHugger Robot 6b10f4649c Merge "Adjust all apps zoom level" into sc-dev 2021-08-12 00:09:14 +00:00
Steven Ng 09b4c0004e Fix pending restore widget touch issue am: bdffb53843 am: 8facf46000 am: 749f8c54cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517689

Change-Id: I1680d83e098039218ed1ac148e859f94fbbf7652
2021-08-12 00:07:14 +00:00
Steven Ng 77fef98367 Fix pending restore widget touch issue am: bdffb53843 am: 8facf46000 am: 3bb9cdedea
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517689

Change-Id: I0281cf03a08452b606d41fd578b1b3b23e01f1c3
2021-08-12 00:06:07 +00:00
Steven Ng 572228abea Fix pending restore widget touch issue am: bdffb53843 am: 9b6951db38 am: 8d6d6da71f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517689

Change-Id: I4a72860db35f611706656d9779f189fa4ebbf0af
2021-08-12 00:05:57 +00:00
Steven Ng 749f8c54cd Fix pending restore widget touch issue am: bdffb53843 am: 8facf46000
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517689

Change-Id: I4ce17b8b2c3ac35d7cecc58813e148784869fda9
2021-08-11 23:58:04 +00:00
Steven Ng 3bb9cdedea Fix pending restore widget touch issue am: bdffb53843 am: 8facf46000
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517689

Change-Id: Iea713b79bd9b440ef51481d3c6c3b1a7e787fea7
2021-08-11 23:58:04 +00:00
Steven Ng 8d6d6da71f Fix pending restore widget touch issue am: bdffb53843 am: 9b6951db38
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517689

Change-Id: I8bcb8f6cc657b24c4bba64e1183ff0a5853c6652
2021-08-11 23:57:48 +00:00
Steven Ng 237a1236d0 Fix pending restore widget touch issue am: bdffb53843 am: 95439ffdcc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517689

Change-Id: Ib92420ee6bf644413fda35febd94bc7dc5725fef
2021-08-11 23:57:24 +00:00
Steven Ng 8facf46000 Fix pending restore widget touch issue am: bdffb53843
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517689

Change-Id: Ie1cd0fccfcb7377853f326e6e0476c3ec08be97a
2021-08-11 23:49:30 +00:00
Steven Ng 95439ffdcc Fix pending restore widget touch issue am: bdffb53843
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517689

Change-Id: I236f9ed002f3a31e4d0a26a60d84601bd00f33b6
2021-08-11 23:48:39 +00:00
Steven Ng 9b6951db38 Fix pending restore widget touch issue am: bdffb53843
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517689

Change-Id: I41dd1c03f6ba6c1b9e6d477fd9809d7d37d2b133
2021-08-11 23:48:34 +00:00
Android Build Coastguard Worker 205a4523b8 Snap for 7632648 from 148b33b552 to sc-v2-release
Change-Id: I50c9094ad345ce052b99b55ea27377f681c4ad75
2021-08-11 23:12:24 +00:00
Steven Ng 638597aae1 Merge "Preview layout scaling for RemoteViews preview" into sc-v2-dev am: b014e9098b am: bf99115554
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517677

Change-Id: Id9d70eb074dddadb306145d8ee6d0355f2e85d41
2021-08-11 22:46:30 +00:00
vadimt 714d071f76 Removing old workaround
Test: presubmit
Bug: 165029151
Change-Id: I5a64c6e381c0bbbf849658648bd5b75a1e660381
2021-08-11 15:44:39 -07:00
Steven Ng bf99115554 Merge "Preview layout scaling for RemoteViews preview" into sc-v2-dev am: b014e9098b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517677

Change-Id: Ia784b79b24f657c63a03cf3d041b924cfee3d657
2021-08-11 22:22:29 +00:00
vadimt c353b1adb2 Removing old workaround
Bug: 139137636
Test: presubmit
Change-Id: Iaa307c3d58f76ab7ee3b0a4a4a364b2b97d0efb7
2021-08-11 15:06:07 -07:00
Steven Ng b014e9098b Merge "Preview layout scaling for RemoteViews preview" into sc-v2-dev 2021-08-11 21:59:45 +00:00
Steven Ng bdffb53843 Fix pending restore widget touch issue
After http://ag/14980850, we block updateAppWidget until app widget
is restored. However, PendingAppWidgetHostView constructor relies
on updateAppWidget(null) to trigger set listener in getDefaultView().
We should call super.updateAppWidget(null) in the constructor instead.

Test: manual
Bug: 14980850
Change-Id: I30af9778a636af2ad822e7abc152b6f0bfdea1bf
2021-08-11 22:40:06 +01:00
vadimt 4381c3a343 Removing unnecessary logging
Test: presubmit
Bug: 190748682
Change-Id: I3a280b4f351098cf256d276baced6e13eb771eb3
2021-08-11 14:24:06 -07:00
vadimt 9fed5fd8b5 Adding NavigationModeSwitch to testOverviewActions
Bug: 162012217
Test: presubmit
Change-Id: I64d9cf69c870f2b23315d904e1aa2548984eaa75
2021-08-11 14:16:17 -07:00
vadimt e7fbe56b74 Logging fist event not from test
Bug: 189874683
Test: I didn't test this
Change-Id: I6808d09ffa1700b02596b585f36dadbd5242e3ef
2021-08-11 12:54:47 -07:00
TreeHugger Robot 1e1ec9b74f Merge "Even further increase FORCE_PAUSE_TIMEOUT in tests" into sc-v2-dev am: 69f2dc2b49 am: 77ec32edfa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517680

Change-Id: Icf3a7416b74735199299e365653882901c5bcfe5
2021-08-11 19:46:14 +00:00
TreeHugger Robot 77ec32edfa Merge "Even further increase FORCE_PAUSE_TIMEOUT in tests" into sc-v2-dev am: 69f2dc2b49
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517680

Change-Id: Id7a0758d1a81eccc438b3d4f943afc6172f9a296
2021-08-11 19:32:57 +00:00
TreeHugger Robot 69f2dc2b49 Merge "Even further increase FORCE_PAUSE_TIMEOUT in tests" into sc-v2-dev 2021-08-11 19:19:59 +00:00
TreeHugger Robot 5084dbd5fa Merge "Clean up ScreenRecord for AddWidgetTest" into sc-v2-dev am: fcc4dbb65b am: f621dc1dcc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517672

Change-Id: I0e62f7a94b31aa4684723ae28912ac544e542524
2021-08-11 19:06:30 +00:00
TreeHugger Robot f621dc1dcc Merge "Clean up ScreenRecord for AddWidgetTest" into sc-v2-dev am: fcc4dbb65b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517672

Change-Id: Iad2b802f1b931bac8719fb73a2106d8939951be5
2021-08-11 18:57:06 +00:00
TreeHugger Robot fcc4dbb65b Merge "Clean up ScreenRecord for AddWidgetTest" into sc-v2-dev 2021-08-11 18:41:32 +00:00
Thales Lima 878a8b7c81 navigation: don't run gesture animation if gestures are not enabled am: 931bc2a38e am: b2206f3c71 am: b9bbafee9d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517673

Change-Id: I43fda2c89eaa010e0ff7348950518bce8dd4608e
2021-08-11 18:40:25 +00:00
Thales Lima b9bbafee9d navigation: don't run gesture animation if gestures are not enabled am: 931bc2a38e am: b2206f3c71
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517673

Change-Id: I3508172a41175fe111da60d40bbb7f3ddb25a53a
2021-08-11 18:40:06 +00:00
Thales Lima e0004d0346 navigation: don't run gesture animation if gestures are not enabled am: 931bc2a38e am: 9bbc085710 am: 9d22d27785
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517673

Change-Id: I3743506a7d1625b077a9e180ffaf6f720f70670a
2021-08-11 18:40:06 +00:00
Thales Lima 9d22d27785 navigation: don't run gesture animation if gestures are not enabled am: 931bc2a38e am: 9bbc085710
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517673

Change-Id: I93ecbd24b9631f7a7202e31f88a573e9d4bc0cd5
2021-08-11 18:35:07 +00:00
Nick Chameyev 41bbb285a7 Merge "Add unfold animation to launcher icons and widgets" into sc-v2-dev am: 02c0c924a6 am: 79690a5b74
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15390834

Change-Id: I28062ec9243c25e44ae496647475d13da74fe239
2021-08-11 18:30:29 +00:00
Thales Lima 9bbc085710 navigation: don't run gesture animation if gestures are not enabled am: 931bc2a38e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517673

Change-Id: I3cbe31061153996668243da5c1b70741093d6948
2021-08-11 18:29:23 +00:00
Thales Lima b2206f3c71 navigation: don't run gesture animation if gestures are not enabled am: 931bc2a38e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517673

Change-Id: I4db182fc09187b88644c0b144048e35413d0335f
2021-08-11 18:29:21 +00:00
Nick Chameyev 79690a5b74 Merge "Add unfold animation to launcher icons and widgets" into sc-v2-dev am: 02c0c924a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15390834

Change-Id: Idd1fc1e9a52f7788d7ed14d0fbfcad9a682b60db
2021-08-11 18:29:09 +00:00
Nick Chameyev 02c0c924a6 Merge "Add unfold animation to launcher icons and widgets" into sc-v2-dev 2021-08-11 18:04:03 +00:00
Alex Chau c2441dffbe Even further increase FORCE_PAUSE_TIMEOUT in tests
- http://b//194114179#comment17 shows that 900ms should work for most cases

Bug: 194114179
Test: atest NexusLauncherOutOfProcTests:com.android.launcher3.memory.MemoryTests#testAppLaunchFromWorkspace
Change-Id: Ie2832d7ad25b0844121ecf626903140bfeedc5ba
2021-08-11 18:36:42 +01:00
Lucas Dupin 3f6a4e6bf5 Adjust all apps zoom level
The All Apps scrim fades in early, covering part of the zoom animation.
We need to adjust the max zoom in order to make All Apps consistent with
Overview, -1, and Shade.

Test: pull up the all apps drawer
Fixes: 195992422
Change-Id: Ia7bbe17fe7f227dd0a16ba7d21b402cff57176f0
(cherry picked from commit f168bb7aaf)
2021-08-11 15:55:04 +00:00
Steven Ng f64b08dcb9 Preview layout scaling for RemoteViews preview
RemoteViews may contain multiple layouts. The best fit layout is
picked after layout. Let's ensure the best fit layout is picked
before scaling a preview

Test: Manual
Fix: 196044656
Change-Id: I41b9f70040befaf96a9af95f9399a816eb0b71cb
2021-08-11 16:37:58 +01:00
Nick Chameyev 5e8dbe77e8 Add unfold animation to launcher icons and widgets
Adds unfold animation to launcher which translates
icons and widgets from the center to the sides on
foldable devices.

Bug: 193794541
Test: manual
Change-Id: I9d6e018a0451d342f02dddea47bc180781c31d43
2021-08-11 16:10:18 +01:00
Thales Lima 931bc2a38e navigation: don't run gesture animation if gestures are not enabled
Makes the animation when using 3 button navigation be closer to what we
have in non fallback mode, also fixing the problem when fallback recents
just started and don't have any views.

Fix 194487871
Test: manual with gestures, 2 button and 3 button nav

Change-Id: If3925d6bef1d14f51b86169d06607786972f5f1f
(cherry picked from commit 8d49c4bb29)
2021-08-11 10:26:22 +00:00
Alex Chau 2a4c978371 Clean up ScreenRecord for AddWidgetTest
Bug: 195263971
Test: manual
Change-Id: I5880c9aa0294795d7a5827163f3f51466b67ad35
2021-08-11 10:06:05 +01:00
Tony Wickham efb66f0937 Don't recreate touch controllers when ending gesture am: 0b3b2921c3 am: 148b33b552 am: 6d407c204a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15522688

Change-Id: Ie2d09a6a192d0fde9013629e04b45d72696de791
2021-08-11 05:33:15 +00:00
Tony Wickham 71b67a6294 Don't recreate touch controllers when ending gesture am: 0b3b2921c3 am: 26abd0f7a9 am: 4e7912aad3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15522688

Change-Id: Ia45c1bb9b97d1f73dbde4a9686e9e4ca2a988601
2021-08-11 05:33:03 +00:00
Tony Wickham 6d407c204a Don't recreate touch controllers when ending gesture am: 0b3b2921c3 am: 148b33b552
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15522688

Change-Id: I9427b5a3c220716ee6987ed04fa9cf2a30349404
2021-08-11 05:13:00 +00:00
Tony Wickham 4e7912aad3 Don't recreate touch controllers when ending gesture am: 0b3b2921c3 am: 26abd0f7a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15522688

Change-Id: I7017b30e960ac498f2acbacb2b1cf0c7883224df
2021-08-11 05:12:22 +00:00
Tony Wickham 26abd0f7a9 Don't recreate touch controllers when ending gesture am: 0b3b2921c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15522688

Change-Id: I889ef533eebca7eb091661df526cc604ccba206b
2021-08-11 04:54:54 +00:00
Tony Wickham 148b33b552 Don't recreate touch controllers when ending gesture am: 0b3b2921c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15522688

Change-Id: I21edf6e83271c749bfd21b3d3a6643a6b0bffa59
2021-08-11 04:54:53 +00:00
Tracy Zhou c84a005e8c Merge "Taskbar should animate immediately when tapping a live tile" into sc-v2-dev am: 255887ccdc am: 490ca1926d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15467635

Change-Id: I94e8157686cadc71556c6307770b19b593fc5421
2021-08-11 04:45:26 +00:00
Tracy Zhou 490ca1926d Merge "Taskbar should animate immediately when tapping a live tile" into sc-v2-dev am: 255887ccdc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15467635

Change-Id: I1d6855335bf027535308c34c70cd49bdf9c33b51
2021-08-11 04:35:58 +00:00