Commit Graph

23 Commits

Author SHA1 Message Date
Sunny Goyal 18c699fbc5 Using the system color extraction logic instead of inbuild logic
> Moving the inbuild color extraction logic to the aosp flavor

Bug: 79111591
Change-Id: I766b0397da7224b424cd5f309cedf635d60a5e0f
2018-05-04 10:16:39 -07:00
Sunny Goyal 4213783716 Updating gradle configuration
Change-Id: I77c6ba057c751123bb40862a94a0027b7e0c87ef
2018-04-23 14:03:12 -07:00
Sunny Goyal c466b173d5 Adding a label for the notifiation service
Bug: 72314360
Change-Id: Ib7ae98015241cf6548dbb4d615cae514a4dde983
2018-03-01 16:10:37 -08:00
Sunny Goyal f2dd4216c1 Removing extraction service and palette api dependency
Change-Id: I30ad1a1462a97b6bc03f8e386ae3058c7fe022e5
2017-09-29 10:40:08 -07:00
Jon Miranda 94fe9fabae Add REQUEST_DELETE_PACKAGES permission to manifest.
"Since O all apps requesting uninstalls should have this permission.
There is a bug in the platform code that we do not enforce this.
We enforce this starting in P."

Bug: 65375213
Change-Id: If86e43a32d6a4553345fb1e285888e748376b818
2017-09-05 13:38:07 -07:00
Sunny Goyal 8231596619 Updating the WallpaperManagerCompatVL to use JobSchedular instead of intent service
Bug: 62065291
Change-Id: I5872cea1b110268e9593eeb6397e94ecea1bc03d
2017-06-08 15:39:38 -07:00
Tony f514f207c2 resolve merge conflicts of 629a67c5a to ub-launcher3-dorval-polish
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I5aed3f0c978976c499b532c816d81196cb11e3a1
2017-06-02 19:33:49 -07:00
Tony 629a67c5ac Migrate ColorExtractionService to JobService
IntentService cannot be run in the background, so moving to
JobService prevents us from crashing if the wallpaper is
changed while we aren't running.

Bug: 62065291
Change-Id: Ie0c887e36d0ced43a0b9ab8136bf55eb37697489
2017-06-02 18:21:05 -07:00
Sunny Goyal 3e93ec558a Adding compat implementation for the new WallpaperManager APIs for color extraction
Change-Id: Ie06c9ac3a77cd33d22ce298a55e234078895c3a0
2017-05-23 14:03:03 -07:00
Hyunyoung Song 37fa9b407b Add meta data to indicate launcher_dump provider name
b/36904684

Change-Id: I3e4bdae163dbe1ecfbd0a009462f13f25e2486d6
2017-05-04 17:20:20 -07: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
Hyunyoung Song 837eb1f47d Change application launcher icons to adaptive icons
b/35429795

Change-Id: I4fa2fb167040c2470c403a293d1a172c276b2f81
2017-03-03 12:48:05 -08: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
Tony Wickham d27b65d4d0 Temporarily remove notification listener from the manifest.
Bug: 35102937
Change-Id: I830b7146815248c80f65c91a6cf81a2664afeaac
2017-02-09 14:23:13 -08:00
Sunny Goyal cd64d62a7e Merge "Updating manifest entry as per API changes" into ub-launcher3-master 2017-01-27 00:04:13 +00:00
Sunny Goyal 8b2002e280 Updating manifest entry as per API changes
Bug: 34174006
Change-Id: I905532ba44a8898c9c17476f9f75bc309eeb7b41
2017-01-26 14:41:02 -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 43a2f42978 Merge "Add NotificationListener to launcher." into ub-launcher3-master 2017-01-25 18:18:25 +00:00
Tony Wickham 010d255018 Add NotificationListener to launcher.
- NotificationListener extends NotificationListenerService, and is
  added to the manifest.
- Added PopupDataProvider, which contains logic for storing and
  interacting with data that goes into the long-press popup menu
  (shortcuts and notifications). A follow-up CL will rename
  DeepShortcutsContainer to a generic PopupContainerWithArrow.
- If Launcher has notification access, NotificationListener will
  get callbacks when notifications are posted and removed; upon
  receiving these callbacks, NotificationListener passes them to
  PopupDataProvider via a NotificationsChangedListener interface.
- Upon receiving the changed notifications, PopupDataProvider maps
  them to the corresponding package/user and tells launcher to
  update relevant icons on the workspace and all apps.

This is guarded by FeatureFlags.BADGE_ICONS.

Bug: 32410600
Change-Id: I59aeb31a7f92399c9c4b831ab551e51e13f44f5c
2017-01-25 09:51:06 -08:00
Sunny Goyal b38fab7573 Adding support for drag and drop for requestPinItem.
On long pressing, the confirmation activity starts a system
drag-n-drop and focuses the launcher activity. We then drive
the launcher drag controller using the system drag event

Caveats:
> We use a transparent preview for system drag and drop and use
  a view inside launcher for actual preview. This gives us better
  control over various animations.
> The parameters for drag operation are passed to the Launcher
  activity using the intent. Since onNewIntent and onDragEvent
  come at different times and are not associated, a random uuid
  is used as mime-type to match the drag event with intent params
> If the workspace is locked (eg, loader is running) the drag
  operation is simply dropped. Will be imporved in follow up cls

Bug: 33584624
Change-Id: I0bb5b25b690f86b6af31a14e11beb669fcb3a281
2017-01-24 22:24:54 -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
Sunny Goyal 112ce42926 Adding a resource pointer to the app name so that derived projects can
easily modify app name

Change-Id: I3f301e1b2ba38d0a45d220bb628dcfdf3906246c
2016-08-22 16:45:58 -07:00
Sunny Goyal d83a67a6b4 Separating out configs and common manifest entries
This separation allows for easier modification of Launcher3
by derivative projects

Change-Id: Ib3469e9b5d2707daef572050698d792316534d45
2016-05-24 14:11:24 -07:00