History log of /packages/apps/Launcher3/tests/src/com/android/launcher3/popup/PopupPopulatorTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
887bd1fe1af9a37aad78ad51f5b38b265aa09c3a 31-May-2017 Tony <twickham@google.com> Show more shortcuts when last notification is dimissed

We currently only show 2 shortcuts when notifications are
present, but support up to 4 otherwise. With this change,
the hidden shortcuts are added back after dismissing the
notifications, instead of only after closing and reopening
the container.

To ensure the transition is as elegant as possible, we also
separated the shortcuts header from the rest of the shortcuts.
That way we can reveal the new shortcuts without removing the
header (the shortcuts come out from behind the header).

Bug: 38036250
Change-Id: Ie9ab35f9be57cec1d5345e9e70e84e09ea52c9fc
/packages/apps/Launcher3/tests/src/com/android/launcher3/popup/PopupPopulatorTest.java
2f5bb169154d25bc8c164f057117fb056ad2de96 24-Mar-2017 Tony Wickham <twickham@google.com> De-dupe shortcuts with the same id as the main notification.

- Pass NotificationKeyData, which includes the shortcut id, instead of
just the notification key from NotificationListener
- Remove the shortcut with the same shortcut id as the first
notification, if it has one, in PopupPopulator#sortAndFilterShorcuts()
- Add some unit tests

Bug: 36571718
Change-Id: I308941b34c525b34686583476e3f82ccb8b7e2d8
/packages/apps/Launcher3/tests/src/com/android/launcher3/popup/PopupPopulatorTest.java
540913eadf39f1e8632d2b6f0bc33aa635214198 23-Jan-2017 Tony Wickham <twickham@google.com> Refactor DeepShortcutsContainer to PopupContainerWithArrow

- Also added PopupItemView, which takes animation logic from
DeepShortcutView, and which DeepShortcutView now extends.
- Renamed ShortcutFilter to PopupPopulator, which has support
for new item types (not yet used). Also moved populating
logic (e.g. UpdateShortcutChild Runnable) to PopupPopulator.

Bug: 32410600
Change-Id: Ib6e444ac7ca99c80ba438801c26e62d9542e0ad9
/packages/apps/Launcher3/tests/src/com/android/launcher3/popup/PopupPopulatorTest.java