Commit Graph

2347 Commits

Author SHA1 Message Date
Bill Yi 1bc2305d4c Import translations. DO NOT MERGE
Change-Id: I6bd0e70df3bba61196c3eb6a9c33a8800d236648
Auto-generated-cl: translation import
2017-03-18 04:29:18 -07:00
Sunny Goyal c65a0085d7 Adding support for showing the widget preview based on the provided RemoteViews
Bug: 35811129
Change-Id: I336e48cd00cfec2e617ac73bd8a81419b0944aa7
2017-03-17 11:25:29 -07:00
Jon Miranda efd5cbf55c Allow TalkBack to read sectional headings on Widgets screen.
Bug: 35027834
Change-Id: Ice512bac83d818a4f8dca6d5f4b041a6bfa4df67
2017-03-16 15:21:25 -07:00
Bill Yi 372fadc9f1 Import translations. DO NOT MERGE
Change-Id: I3ab8f241299226e0453e654fdbde113646349190
Auto-generated-cl: translation import
2017-03-11 21:32:36 -08:00
Sunny Goyal 4179e9b88f Adding broadcast receiver to handle SESSION_COMMIT broadcast
> Disabling Install shortcut broadcast for O and above
> Adding a preference to control automatic icon addition on homescreen
> Adding icons on homescreen for new installs based on the above preference

Bug: 32920609
Bug: 27967412
Change-Id: I92e5cb7c841fb445dc8bc058d975f212ee54f8d1
2017-03-09 10:56:09 -08:00
Bill Yi d896d1c29f Import translations. DO NOT MERGE
Change-Id: I438eb3210577fca407121d91cda2223090fd31f4
Auto-generated-cl: translation import
2017-03-06 06:30:32 -08:00
Mario Bertschler 86515dd148 Merge "App discovery integration in All Apps search" into ub-launcher3-dorval 2017-03-04 00:05:40 +00:00
Hyunyoung Song 61d351fe82 Merge "Change application launcher icons to adaptive icons b/35429795" into ub-launcher3-dorval 2017-03-03 21:16:37 +00:00
Mario Bertschler 0fc6f684e7 App discovery integration in All Apps search
This is the basis for app discovery integration while searching in all apps.
This does NOT include binding to the actual service and retrieving results,
but instead provides all the UI to show suggested instant apps and apps
from a store with star rating and pricing.

Change-Id: I1605b52848491acee4ac1d15c0112e6a768363f6
2017-03-03 13:05:57 -08:00
Hyunyoung Song 837eb1f47d Change application launcher icons to adaptive icons
b/35429795

Change-Id: I4fa2fb167040c2470c403a293d1a172c276b2f81
2017-03-03 12:48:05 -08:00
Sunny Goyal 4ff3457e77 Merge "Moving Event dispatcher definition from LAuncher to BaseActivity so that it can be used in other activities as well." into ub-launcher3-dorval 2017-03-03 20:10:29 +00:00
Tony Wickham 9407d4ab57 Update notification visuals (part 2)
- Background is now white, and color beneath and divider color
  updated accordingly (not from color extraction)
- Removed overflow text ("+6") and added it to a header
  ("6 Notifications"). Use "..." instead if there is an overflow.
- Even spaced out icons in notification footer between the
  far right icon and the ellipsis
- Remove code to change arrow tint, since it is always white
  now. This also fixes the issue where it was drawn as a rect.

Bug: 35766387
Change-Id: I03bfda4ff029f23dd8b3dd1b72f534ea0e2c0816
2017-03-02 11:27:16 -08:00
Tony Wickham 12fec49834 Merge "Merge deep shortcuts in rounded rect" into ub-launcher3-dorval 2017-03-01 18:57:22 +00:00
Tony Wickham 51889b0be8 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
2017-03-01 10:16:16 -08:00
Bill Yi 1cb518db18 Import translations. DO NOT MERGE
Change-Id: I81729ad91123d3dc3c365d09f2c7027f62411755
Auto-generated-cl: translation import
2017-02-27 19:27:58 -08:00
Sunny Goyal a535ae423b Moving Event dispatcher definition from LAuncher to BaseActivity so that
it can be used in other activities as well.

Bug: 34766840
Change-Id: Ie4b723483792bee93fb75e63146ebea7dfeebeda
2017-02-27 10:09:09 -08:00
Tony Wickham 7f3526a1a4 Update notification view to match newer specs
- Use smaller radius for notifications round rect background
- Remove "Notifications" header, and clip children to round rect path
- Flip main notification so that icon shows on the right instead of
  left; footer is also flipped so animation makes sense
- Clean up animations to animate view outline instead of height

Bug: 32410600
Change-Id: I6bd1e1f8395b3703f28c3b0056a89e67672368ab
2017-02-24 12:09:06 -08:00
Sunny Goyal 2a76e3fbc6 Removing custom state definition from FastBitmapDrawable
> For Fast scrolling, using state list animator defined in xml
> For Pressed state, using onState change method in a drawable

Change-Id: Ia608690f593938cf0f77e00afcc2a3076e48d8f4
2017-02-23 16:15:25 -08:00
Bill Yi 25867b8c92 Import translations. DO NOT MERGE
Change-Id: I2424c6b29a8d71a3fb697a85f82f2678774c975f
Auto-generated-cl: translation import
2017-02-22 07:53:34 -08:00
Sunny Goyal 80f4c9d830 Enabling translation for string relates to Add to homescreen confirmation prompt
Bug: 34819119
Change-Id: Id4c522319c92641faa28bb685f4ea4658aa4ec9e
2017-02-17 12:11:24 -08:00
Sunny Goyal 519fbdb2b3 Merge "Simplifying some launcher themes" into ub-launcher3-master 2017-02-17 17:53:58 +00:00
TreeHugger Robot dd88dd16c5 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-02-17 07:43:38 +00:00
Bill Yi 953f9f90c5 Import translations. DO NOT MERGE
Change-Id: Id2b9f6fbdd4aea3663ba8e418888bac8cf956da3
Auto-generated-cl: translation import
2017-02-16 23:31:06 -08:00
Adam Cohen 09f5a96a71 Merge "Add notification listener back to the manifest" into ub-launcher3-master 2017-02-17 00:50:57 +00:00
Tony 4d8019abf4 Add notification listener back to the manifest
This reverts commit d27b65d4d0.

Also added boolean to values/ and values-v25/ and values-v26/
to enabled/disable the listener by API version.

Bug: 35443111
Bug: 33553066
Change-Id: I69465c720f3b3eca7ae2025e01c315720862bec8
2017-02-16 16:38:54 -08:00
Sunny Goyal 1f3f07d47c Simplifying some launcher themes
> Replacing some colors with theme attributes
> Simplifying styles definition by removing unnecessary inheritance and inlining some definitions

Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
2017-02-16 15:24:37 -08:00
Sunny Goyal 7d87cb1a6e Updating the shortcut preview generation logic
Drawing a shortcut icon on a white round-rect with shadow
Also center aligning the preview

Bug: 34819119
Change-Id: Ic25be6bf301aeb11315a5050f009259b26c6134a
2017-02-16 13:41:04 -08:00
Sunny Goyal c9f844db2b Merge "Updating the default widget preview generation logic" into ub-launcher3-master 2017-02-09 18:25:06 +00:00
TreeHugger Robot c99b30b01f Merge "Updating widget tray theme" into ub-launcher3-master 2017-02-09 18:24:16 +00:00
Sunny Goyal d5d5e22715 Updating widget tray theme
Using standard theme attributes rather than custom color codes, so
that it plays nice with system theme changes.

Bug: 34819119
Bug: 34897402
Bug: 21446746
Change-Id: I265fba3ceae8873650fd09e4704838d313155e83
2017-02-09 10:16:22 -08:00
Sunny Goyal 92bbfa19c3 Updating the default widget preview generation logic
We draw a while round rect box which is divided into the cells to
represent the widget size. The app icon is drawn in the center
for this white box.

Bug: 34819119
Change-Id: Ie4d83712577f21b276c6744a55993f71da368398
2017-02-08 15:28:02 -08:00
Tony Wickham 3cdda5fa8b Merge "Show notification icon in place of "1" in badge." into ub-launcher3-master 2017-02-07 18:57:32 +00:00
Tony Wickham a799bed803 Show notification icon in place of "1" in badge.
- When notifications update, add the NotificationInfo to the
  BadgeInfo if there is only one for an app. BadgeRenderer
  will use the NotificationInfo to get the icon to draw.
- When retrieving the icon from the NotificationInfo, we draw
  it into a shader (similar to MaskableIconDrawable), which is
  rendered by BadgeRenderer.
- For now, we only use the notification icon if it is large.

Bug: 34839959
Bug: 32410600
Bug: 33553066
Change-Id: I31851804008dd15bab75d2759441187830c3265e
2017-02-07 09:48:43 -08:00
Sunny Goyal 96ac68a481 Updating the PreloadIconDrawable
> The drawable gets the path from MaskIconDrawable path, instead of
  using a circle
> The progress changes are animated as well

Bug: 34831873
Change-Id: I4e7f0b610f4fd94de8e0cfcf8b179b775cf0b4d8
2017-02-06 10:43:27 -08:00
TreeHugger Robot cf23ef3000 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-01-31 07:28:28 +00:00
Bill Yi 8c992e3b4f Import translations. DO NOT MERGE
Change-Id: I6939381d081f809324360287994fd424dd533f66
Auto-generated-cl: translation import
2017-01-30 22:03:45 -08:00
Hyunyoung Song ea383c312c Changes required to use MaskableIconDrawable inside Launcher3
This CL will bake the legacy icons inside a grey background

Note: There will be follow up CL to change the color and shadow of the
legacy icon. The idea of this CL is to first test if MaskableIconDrawable
methods and class work properly.

Bug: 32063838
Bug: 33553066

Change-Id: I3d02e619fcb0cd9879baa22a025b5d95c829f26c
2017-01-30 12:18:08 -08:00
Tony Wickham f79877c04c Ensure notification icons have enough contrast with background.
This uses the same color calculations as the system, except that
we use the extracted notification background instead of assuming
it is white.

Bug: 32410600
Change-Id: I7be8b9459ca38d01a6780758898541e69ec42576
2017-01-27 12:43:31 -08:00
Tony Wickham 9438ed414f Add swipe-to-dismiss notifications in popup menu.
- Next secondary icon animates up to replace dismissed main notification
- Add padding around main notification so it always aligns with the
  straight edges of the view (not the rounded corners); looks more
  dismissable
- Notification view collapses as notifications are dismissed
- To mimic system notification behavior, we copy SwipeHelper,
  FlingAnimationUtils, and Interpolators. We also apply elevation
  to notifications and reveal a darker color beneath when dismissing.

Bug: 32410600
Change-Id: I9fbf10e73bb4996f17ef061c856efb013967d972
2017-01-25 17:36:31 -08:00
Tony Wickham 540913eadf 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
2017-01-25 11:21:47 -08:00
Fan Zhang a14281cacf Fix color for widget tray to match Default.Settings theme
Change-Id: Ief4079853a8275a75c27d3c22b57a72a35274307
Fix: 34672511
Test: visual
2017-01-24 15:55:55 -08:00
TreeHugger Robot c711e6006f Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-01-21 01:18:03 +00:00
Sunny Goyal 65513ba58c Using WidgetCell in the Pin Item confirmation prompt for a consistent UI
Also fixing some platform API changes in PinItemRequestCompat

Bug: 33584624
Change-Id: I255829f0079f1a3967bf8d6a337da12c890eb7ec
2017-01-20 15:44:15 -08:00
Bill Yi a6c4034543 Import translations. DO NOT MERGE
Change-Id: I4be6c1c59d520117f5471af788140d48ca214a31
Auto-generated-cl: translation import
2017-01-20 13:51:01 -08:00
Sunny Goyal a2441e88ff Updating widget preview generation to not embed any badge.
Instead drawing badge in the view directly.

This will allow us to reuse the same preview when we do not want to draw
badges. This also simplified badging of shortcut config activities.

Change-Id: I9c07c33bf9c2b8ef81a00026b1d42587868c906f
2017-01-19 14:00:40 -08:00
Sunny Goyal 278359539c Adding support for requesting addition of shortcut/widget
on the workspace.

Bug: 33584624
Change-Id: I664366822fe8088742faff2cce006239ab0771bc
2017-01-18 18:38:34 -08:00
Tony Wickham 197f97bde4 Merge "FastBitmapDrawable can draw an icon badge (notification count)" into ub-launcher3-master 2017-01-18 22:36:17 +00:00
Mario Bertschler 8e98cb876f Fixes a bug where in Android O the all apps search icon appears
on screen rotation.

The fix is by applying a "different" transparent (transparent
white instead of transparent black) for the hint color in focus
state. The root problem lies in DynamicDrawableSpan and restoring
state in EditText if hint color is #000000.

Bug: b/34259116
Change-Id: Id3c46b2af4d5cdb18c0510504f2fe66dece7056f
2017-01-17 15:04:37 -08:00
Tony Wickham 9a8d11f930 FastBitmapDrawable can draw an icon badge (notification count)
- Added BadgeInfo to contain data to be shown in a badge
  (currently just notification count).
- Added BadgeRenderer in DeviceProfile to contain things
  relevant to drawing the badge, such as size and Paint's.
- Added IconPalette to compute colors for the badge based
  on a dominant color (will also be used for notifications)
- FastBitmapDrawable uses these classes to draw the badge.

Bug: 32410600
Change-Id: I6595a4879943357590f7d20c22594691a573ecaf
2017-01-13 10:58:10 -08:00
Mario Bertschler cd0f679030 This enables to slide up All Apps from anywhere in the workspace,
not only over the hotseat.

The tricky part handling with scrollable widgets is solved by
setting requestDisallowInterceptTouchEvent from within the
widget view host (and resetting it upon performing long click).

Change-Id: I8b60e7ea2c1e8ae830b4737e94ed2d796265fa24
2017-01-09 14:42:52 -08:00