Willie Koomson 2471805414 Handle widgets added with tap-to-add in AppEventProducer
Widgets added with tap-to-add do not emit an ITEM_DROP_COMPELTED event,
so this change updates AppEventProducer to check for
WIDGET_ADD_BUTTON_TAP event so that it can emit an ACTION_PIN
event for these widgets as well.

Also moves the stats logging for tap to add to after
Launcher.addPendingItem is called, so that the PendingAddItem's container
is set to CONTAINER_DESKTOP.

Bug: 323886237
Test: manual, add widget and confirm event is produced through logging,
 and widget no longer appears in suggestions
Flag: ACONFIG com.android.launcher3.enable_widget_tap_to_add STAGING
Change-Id: Iaf46a408d05f61864a79f87b23160364b6513323
2024-03-20 22:07:02 +00:00
2023-12-07 13:04:23 -08:00
2024-03-18 08:59:31 +00:00
2024-01-23 15:55:40 -08:00
2024-01-23 15:55:40 -08:00
2019-11-25 20:24:07 +09:00
2021-09-21 15:25:22 -07:00
2024-01-10 12:30:39 -08:00
2024-01-10 12:30:39 -08:00
2023-10-20 10:09:12 -07:00
2020-01-17 11:24:43 -08:00
S
Description
No description provided
697 MiB
0 Stars 1 Watchers 0 Forks
Languages
Java 55.6%
Kotlin 43.5%
JavaScript 0.3%
AIDL 0.2%
CSS 0.2%