Sunny Goyal
a0ddda45ad
Merge "Updating TaskbarStashController API" into tm-qpr-dev am: ff5697302b am: 24ef99966f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20968628
Change-Id: I46bd67154ae5085e4538170ee5262b3cc533581e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-18 18:00:26 +00:00
Miranda Kephart
6e6f555182
Update ImageActionUtils to construct a ScreenshotRequest
...
Bug: 264457397
Test: atest
Change-Id: Ib629f5d9eed2091f2bc4c1082d5e0dd3d2f9176b
2023-01-18 17:45:14 +00:00
TreeHugger Robot
3080803691
Merge "Using AnimatedFloat for maintaing TaskbarInAppDisplayProgress instead of a float array" into tm-qpr-dev
2023-01-18 17:35:24 +00:00
Sunny Goyal
24ef99966f
Merge "Updating TaskbarStashController API" into tm-qpr-dev am: ff5697302b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20968628
Change-Id: I5df111238f109d4ea3b50354adccab780e30b216
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-18 17:22:02 +00:00
Sunny Goyal
ff5697302b
Merge "Updating TaskbarStashController API" into tm-qpr-dev
2023-01-18 16:53:55 +00:00
Alex Chau
0e89e09f11
Merge "Use transient taskbar size/margin to calculate taskbar position for persistent taskbar" into tm-qpr-dev am: 6ef0f12286 am: 73f1fa59c0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20992197
Change-Id: Ic5872543739bb5dc680ca1d46d6a27967f03411d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-18 16:47:56 +00:00
Alex Chau
73f1fa59c0
Merge "Use transient taskbar size/margin to calculate taskbar position for persistent taskbar" into tm-qpr-dev am: 6ef0f12286
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20992197
Change-Id: Ia2d14bdd2ccea3b5f57920a019cde0c12310b4c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-18 16:11:28 +00:00
Nick Chameyev
a8037620bd
Calculate StatusBar height locally in Launcher
...
When reading the status bar inset on devices with
multiple displays after switching the displays
the inset is not updated immediately (SystemUI
should update the height of the window first by
reacting to the display switch in it's own process).
Due to this race condition Launcher is very likely
to calculate DeviceProfile with incorrect inset
of the previous display first and update it to
the correct one only after SystemUI finished the
window update.
To avoid this adding calculation of the StatusBar
height to Launcher locally using the same utility
method that is used by SystemUI.
Bug: 264656380
Test: manual test that the statusbar height is calculated
correctly in Launcher on a device with two displays, both on
the inner and outer display and different rotations
Change-Id: Ia16ecadd8fcac29082d27ca693ab7740ce6161c4
2023-01-18 16:04:41 +00:00
Alex Chau
6ef0f12286
Merge "Use transient taskbar size/margin to calculate taskbar position for persistent taskbar" into tm-qpr-dev
2023-01-18 15:37:34 +00:00
Pat Manning
effe64381b
Reset splash icon when task icon is null to avoid caching incorrect drawable.
...
Fix: 263365662
Test: manual
Change-Id: I79390381f4cab79b9729bd819630eeb9c8b47d1d
2023-01-18 13:20:54 +00:00
Sebastián Franco
a1707e3007
Merge "Remove unused Throw Throwable from clearHomescreen method" into tm-qpr-dev am: 48651b2109 am: c18a4081d5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20831584
Change-Id: Ie10f728d6e544214f2ac91a209fd500635030a5a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-18 02:29:42 +00:00
Sebastián Franco
c18a4081d5
Merge "Remove unused Throw Throwable from clearHomescreen method" into tm-qpr-dev am: 48651b2109
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20831584
Change-Id: I7a3f5ed328fa68a139dd464fd7a672cf910dd36b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-18 01:52:26 +00:00
Sebastián Franco
48651b2109
Merge "Remove unused Throw Throwable from clearHomescreen method" into tm-qpr-dev
2023-01-18 01:12:23 +00:00
TreeHugger Robot
7940b76554
Merge "Workspace pagination UI update" into tm-qpr-dev am: a13d5c4b91 am: ee929a5a9e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20811740
Change-Id: I9439e3ae7415128c3076e2094f486e0b63d1b480
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-18 00:45:27 +00:00
Federico Baron
3278715fd4
Change preload icon size to always be 0.7 scale when downloading
...
In order to match upcoming designs. We will keep the icon size when downloading at 0.7 scale
Test: download an app with ENABLE_DOWNLOAD_APP_UX_V2 on
Bug: 254858049
Change-Id: I7f22eb3a5c6f1e75f19e033ff11a70aa4010ea10
2023-01-17 16:42:43 -08:00
TreeHugger Robot
ee929a5a9e
Merge "Workspace pagination UI update" into tm-qpr-dev am: a13d5c4b91
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20811740
Change-Id: Ida6a08eaac5ef5422a22edaa5b5f59b26660d069
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-18 00:08:28 +00:00
Bill Yi
9a774bc0e0
Merge "Import translations. DO NOT MERGE ANYWHERE"
2023-01-17 23:53:43 +00:00
Bill Yi
2d6f01bd5f
Merge "Import translations. DO NOT MERGE ANYWHERE"
2023-01-17 23:53:43 +00:00
Bill Yi
575b159f05
Merge "Import translations. DO NOT MERGE ANYWHERE"
2023-01-17 23:53:43 +00:00
TreeHugger Robot
a13d5c4b91
Merge "Workspace pagination UI update" into tm-qpr-dev
2023-01-17 23:29:18 +00:00
Bill Yi
d0e515090f
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev am: 3392ef68c6 -s ours am: 200ea03a3c -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20992194
Change-Id: Ib283db76edc68ced8ee29e9b81609312655e2517
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 23:11:14 +00:00
Bill Yi
d8752c4d2d
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: e21933ba5c -s ours am: 9bae661f8a -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20992194
Change-Id: I80b426e2cf3927dc5aa401f06949a18f1fd48301
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 23:10:58 +00:00
Tony Wickham
ccd389dbdf
Merge "Fix launcher crash by set divider hidden" into tm-qpr-dev am: f8176700d3 am: 763a9f2059
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20955885
Change-Id: I919e1cb8cb739cab0d0ce79a8c5a434683f7ca53
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 23:04:16 +00:00
Bill Yi
200ea03a3c
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev am: 3392ef68c6 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20992194
Change-Id: I87dfb31c29fa9f156cfa31d3ceb51f3fd745315c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 22:36:04 +00:00
Bill Yi
9bae661f8a
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: e21933ba5c -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20992194
Change-Id: I9b20bdee775f850a46e00abb6c5b0d5c336072b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 22:35:53 +00:00
Tony Wickham
763a9f2059
Merge "Fix launcher crash by set divider hidden" into tm-qpr-dev am: f8176700d3
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20955885
Change-Id: I7bdc51009808c5ad209367be19d8fe3e96f74985
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 22:32:40 +00:00
Bill Yi
3392ef68c6
Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev
2023-01-17 21:47:46 +00:00
Tony Wickham
f8176700d3
Merge "Fix launcher crash by set divider hidden" into tm-qpr-dev
2023-01-17 21:31:36 +00:00
Bill Yi
0189cb855e
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev am: e8088da56e -s ours am: c3317801ba -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20980021
Change-Id: If2452f2abb7cf5f469733a481ae5df97ccdc0941
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 21:04:16 +00:00
Bill Yi
315de6ef5c
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ef6ec03345 -s ours am: bca1af4afe -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20980021
Change-Id: I8b0e7c9c82e67d3a61976948d05fc17474a2e0ea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 21:04:04 +00:00
Bill Yi
1b73fee0a0
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev am: f11b864a12 -s ours am: 7f1109dd27 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20980019
Change-Id: I9d9f28ad19b0d7593d2d26c94fd9a5d49bc71076
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 21:03:45 +00:00
Bill Yi
eadec5560b
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: c084cd761e -s ours am: bcfcfd8c60 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20980019
Change-Id: I61c42bb00462eb9d4bca84ea18951eaa361e4202
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 21:03:28 +00:00
TreeHugger Robot
c6a4742c73
Merge "Add finish icon scale animation for downloading apps" into tm-qpr-dev am: 196569bb50 am: 7b9b267276
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20732560
Change-Id: Ief2336a94c4d938ec28e67b1cda410d760b60f19
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 21:00:00 +00:00
Bill Yi
c3317801ba
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev am: e8088da56e -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20980021
Change-Id: Ie35a840968c2d7fd2c7ffc40a05a8440ac558504
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 20:06:36 +00:00
Bill Yi
bca1af4afe
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ef6ec03345 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20980021
Change-Id: Ie28ae5a4ed49b8067954df8b885fc8a498b3c3eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 20:06:26 +00:00
Bill Yi
7f1109dd27
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev am: f11b864a12 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20980019
Change-Id: Ifcdacd853fb67deddd093fab67de227426a704c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 20:06:04 +00:00
Bill Yi
bcfcfd8c60
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: c084cd761e -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20980019
Change-Id: I70eea666f353eb2aa3a297a627cc397e35d9b0a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 20:05:48 +00:00
TreeHugger Robot
7b9b267276
Merge "Add finish icon scale animation for downloading apps" into tm-qpr-dev am: 196569bb50
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20732560
Change-Id: Ia4e3489346f6a9a6220ed91d5894cd986fcf7267
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 20:01:13 +00:00
Bill Yi
e8088da56e
Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev
2023-01-17 19:55:05 +00:00
Bill Yi
f11b864a12
Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev
2023-01-17 19:55:05 +00:00
TreeHugger Robot
196569bb50
Merge "Add finish icon scale animation for downloading apps" into tm-qpr-dev
2023-01-17 19:38:47 +00:00
Stefan Andonian
6a651e63c9
Merge "Expanded LauncherPrefs APIs to Replace Direct Shared Preference Usage." into tm-qpr-dev am: 1eb59d6c6a am: 60e3b74522
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20764866
Change-Id: I7a69b534e3df890034eb897e8d61517e75828702
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 19:29:02 +00:00
Stefan Andonian
60e3b74522
Merge "Expanded LauncherPrefs APIs to Replace Direct Shared Preference Usage." into tm-qpr-dev am: 1eb59d6c6a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20764866
Change-Id: I291aeed8952555e9dd35b4dfe2e1c73db889351a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-01-17 18:52:00 +00:00
Stefan Andonian
1eb59d6c6a
Merge "Expanded LauncherPrefs APIs to Replace Direct Shared Preference Usage." into tm-qpr-dev
2023-01-17 18:23:10 +00:00
Nicolo' Mazzucato
cb7bd50247
Log device profile changes in perfetto traces
...
This is needed to easily spot unwanted DeviceProfile changes in perfetto traces, as each one causes many new inflation and slows down the ui thread considerably.
Test: recorded trace with this log
Bug: 258214245
Change-Id: I805d56d4dfe1c08d7f28215c0462d01fcaece84e
2023-01-17 14:54:11 +00:00
Jeremy Sim
2842bc72fd
Fix bug with Taskbar launches in Overview
...
This patch fixes a bug where Taskbar launches (tapping an icon on the Taskbar) were not executing correctly in Overview.
Now that Taskbar is always present in Overview, we need to handle cases where the user taps to launch an app, but the app is already visible to the user in Overview. This was breaking in a noticeable way with split apps, where the Taskbar simply wouldn't respond when the tapped app was already visible as a live tile.
Fixed by polling RecentsModel for already-running tasks, checking to see if the associated TaskView is visible to the user or not, and calling launchTasks() on the TaskView if so. If the tile is not visible to the user, the app will launch normally.
Fixes: 261952204
Test: Work in progress
Change-Id: If761546913bde7451a22456a272ba6c31942c5f8
2023-01-17 13:54:47 +08:00
Alex Chau
835ccc58e0
Close Taskbar AllApps when going from overview to home
...
- Also trigger closeAllOpenViews when changing state to NORMAL
Fix: 265689318
Test: manual
Change-Id: I109c0f3a3c741844c8747bd76a6c38bf301ec737
2023-01-16 18:20:27 +00:00
Alex Chau
85d664efaa
Use transient taskbar size/margin to calculate taskbar position for persistent taskbar
...
- DeviceProfileTest should use persistent taskbar in 3-button mode
Fix: 260596114
Test: DeviceProfileTest
Change-Id: Iadcca218dab2bc2eedc006c86dbbe3f9a0fa5e51
2023-01-16 17:00:46 +00:00
Sebastian Franco
de1fe14a47
Adding the avility to add icons on multiple CellLayouts on tests.
...
I needed to change the code so that you can pass the CellX/Y
position to the drag function instead of the pixel coordinates
and we can pass X position bigger than one CellLayout.
Also, I notice that getCellCenter only worked for 1x1 items
so I added the option to specify the widget size.
Fix: 262431878
Test: atest ReorderWidgets#multipleCellLayoutsSimpleReorder
Change-Id: I3b09de770e8f99aa10cae8cea32e7e6bc02c7b8b
2023-01-16 10:32:40 -06:00
Tony Huang
3f5d510b38
Fix launcher crash by set divider hidden
...
We will hide divider when isLikelyToStartNewTask become true, but
this call sometime earlier than onRecentsAnimationStart then cause
crash because mRecentsAnimationTargets is still null.
Fix this by checking mRecentsAnimationTargets before set divider
visibility. And also add new condition to hide divider to ensure
it hidden if such case happened.
Fix: 265238266
Test: manaul
Test: pass existing tests
Change-Id: I80b1294e69a52e7ac5255cd8e55e7c5e6a3dcbcb
2023-01-16 14:29:19 +08:00