History log of /packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
45cdfa78d4f39db1d18514c4cab0e0e8442b5202 05-Jul-2017 Tony <twickham@google.com> Polish popup

- Remove divider between system shortcut header and shortcuts
- Slightly reduce padding between popup and icon
- Fix gravity to center in drag layer using x and y calculations since
we use the y value to position the popup when removing notifications

Change-Id: I1cb10ed953d11cc0924d8ee70881a434cb748317
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
aa2272f81cc4a62f847db777efda7959cc2b9979 22-Jun-2017 Tony Wickham <twickham@google.com> Popup visual changes

- Don't remove elevation during animation (b/62905720)
- Other adjustments (b/35766387)
- Add "gutter" between notification and shortcuts
- Change shortcuts to always be primary color (e.g. white)
- Scale down shortcut icons when notifications present
- Apply icon extracted color to "Notifications" header

Change-Id: Idf791dc76d15d05d246000ad73810916d7cd1750
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
cd04c89f89dd092d34d149dad107efd7ae00fb2a 22-Jun-2017 Mario Bertschler <bmario@google.com> Removing view.isInTouchMode() because plaform returns false when
using a mouse on long click.

Bug: 38204847

Change-Id: I5b10e8251f4f0a7b148c0404d5939a0fa8325a46
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
5a1ca5756ecea6784743f5cd1540844c1a83b36f 06-Jun-2017 Tony Wickham <twickham@google.com> Adjust some sizes in popup

- Increase main notification height and pad text/icon bottom
- Reduce shortcuts height when there are notifications to 48dp
- When the last notification is dismissed, animate back to 56dp

Bug: 35766387
Change-Id: I84f843c042137fdf93fa720802eb2f19337197b4
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
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/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
acaf5b3a37af11b40166c10e856175bb96cb1476 10-May-2017 Tony <twickham@google.com> Remove gap between popup items

- Unround interior corners
- Update colors (shortcuts are gray when next to
notifications, notifications always white)
- Clean up animation to animate entire popup with
simple reveal instead of individual items
animating with reveal and icon scale

Bug: 35766387
Bug: 36110804
Change-Id: I33685d53e2db3904731676123dc230be4dabb5d4
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
5cfde85cb6d095585b932d9e3e2c4fe78aa0dafe 10-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Visual updates for popup" into ub-launcher3-dorval
0b8a6fe53240f8c8271efed0fc470a65553707de 10-May-2017 Tony <twickham@google.com> Visual updates for popup

- Update some dimens
- Increase left padding for shortcuts
- Adjust arrow and notification ellipsis offset accordingly
- Align shortcut dividers to be same width as text
- Notification text 14sp instead of 15sp
- Increase width of popup by 12dp
- Shortcuts text 87% black instead of 54%
- Arrow has same color as attached side, so takes on header
gray instead of white when appropriate

Bug: 37753827
Change-Id: I0844b85995f22218a3b7e605e1653cceaed6cda1
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
aa6f66aad29171bda85e0633c93530beefdac307 09-May-2017 Jon Miranda <jonmiranda@google.com> Fix bug where deep shortcut drag view target was skewed to the right.

Bug: 38140665
Change-Id: I9386bf70cf51b6be33264f85cbfe9e8049d0c32e
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
a7e1c1c08854930ddb4366698d5bf079ae0536f3 14-Apr-2017 Tony Wickham <twickham@google.com> Only add widgets system shortcut if widgets exist

Before we were adding it in a disabled state, and then enabling it once
widgets were bound (if widgets existed for that app). Now we load all
widgets when launcher starts so that we can use the values for the
purpose of animating the popup container. Then, as the container opens,
we reload widgets/shortcuts for that particular app and add/remove the
widgets shortcut if necessary.

Bug: 34940468
Change-Id: I64bd009442d10d3d1f9a977bdedfdb639a7dd193
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
ee82b035dbaf0cba73ffd856ddc97d092728dc34 14-Apr-2017 Tony Wickham <twickham@google.com> Ensure system shortcut icons always appear in correct order

- Remove "|| true" that I accidentally left in from testing on a
different CL
- Always reverse system shortcut icons that appear in the header of the
ShortcutsItemView, so they are in priority order from right to left

Bug: 35766387
Change-Id: Ia7ac5a72eb2f6d3795e35bd044c426ef46fc0ccc
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
ce44516dd869dff1d6a744e26625a662d9567a10 10-Apr-2017 Tony Wickham <twickham@google.com> Update popup to match redlines

- Update specs in dimens.xml and colors.xml
- Move notification count to top right, and keep "Notifications" in left
- Also removed NotificationHeaderView and instead use FrameLayout
- Limit to 2 shortcuts instead of 3 if there are notifications
- Use SP instead of DP for text (b/35869307)

Bug: 35766387
Change-Id: I892640933ad6351946af3df6c805b98bb4e7cb50
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
26b1746593851e239bfff65ae7a69b809ad87b99 21-Mar-2017 Tony Wickham <twickham@google.com> Add support for system shortcuts in popup container

- Currently the system shortcuts are just widgets and app info
- As shortcuts, they live in ShortcutsItemView
- They are populated either as icons only (if there are deep
shortcuts) or as icons + text
- Widgets are disabled until binding them is complete (we request for
them to be bound on long-press now). We should revisit this.

Bug: 34940468
Change-Id: Ia51d002c3b3ede87658bdab57abfc3eeca1ed242
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
51889b0be83dc34c9752fc066d0d6e75ab4f5e26 28-Feb-2017 Tony Wickham <twickham@google.com> Merge deep shortcuts in rounded rect

- DeepShortcutViews are added to ShortcutsItemView, which
is in PopupContainerWithArrow
- Moved some shortcut-specific logic to ShortcutsItemView
(namely, touch/long-click handling for draggin shortcuts)
- Moved round-rect clipping to PopupItemView
- Removed collapseToIcon() logic, including
PillWidthRevealOutlineProvider, which was only used for
that purpose. It isn't necessary now that the deep
shortcuts have no background themselves.
- Replaced focus pill drawable with ripple effect on
shortcuts and notification view.

Bug: 35766387
Change-Id: I6bc09f1851cfbb806df4bf75a6e435b0f1900c9c
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ShortcutsItemView.java