OSDN Git Service

android-x86/packages-apps-Launcher3.git
7 years agoWhen creating bitmap, do not apply width/height ratio if AdaptiveIconDrawable
Hyunyoung Song [Tue, 25 Apr 2017 18:20:05 +0000 (11:20 -0700)]
When creating bitmap, do not apply width/height ratio if AdaptiveIconDrawable
b/37670867

Change-Id: I60884c52e7eb4b2d6f0ae2a5dc8e7c730f1f2454

7 years agoRemove notification listener to disable badging
Tony Wickham [Thu, 27 Apr 2017 19:55:27 +0000 (12:55 -0700)]
Remove notification listener to disable badging

Bug: 37748653
Change-Id: I80d9f7c5274604f552113c7be0319d5cd454b29c

7 years agoMerge "Only apply legacy treatment on app icons that is targeting O" into ub-launcher...
Hyunyoung Song [Thu, 27 Apr 2017 04:03:40 +0000 (04:03 +0000)]
Merge "Only apply legacy treatment on app icons that is targeting O" into ub-launcher3-dorval

7 years agoSupport notifications with 0 count (show as dots)
Tony Wickham [Thu, 27 Apr 2017 01:13:56 +0000 (18:13 -0700)]
Support notifications with 0 count (show as dots)

- Show number if number > 0
- Show icon if number == 0 and a notification specified an icon to show
- Show a dot otherwise
- In cases of multiple notifications, stack a second badge behind the
  first (visuals will be updated in future CL, as well as support
  stacked dots)
- Folders always show dot if any app within has a badge.

Change-Id: I0a89059b0e0a0d174fe739c9da4f75fa18c0edfa

7 years agoOnly apply legacy treatment on app icons that is targeting O
Hyunyoung Song [Wed, 26 Apr 2017 20:42:12 +0000 (13:42 -0700)]
Only apply legacy treatment on app icons that is targeting O

For shortcuts, always apply legacy treatment.

b/37357483

Change-Id: I45f373ee0bb9436bc5029c88855ecb80b93fe277

7 years agoMerge "Set the alpha to 1 when overview button is focused." into ub-launcher3-dorval
Jonathan Miranda [Wed, 26 Apr 2017 17:53:25 +0000 (17:53 +0000)]
Merge "Set the alpha to 1 when overview button is focused." into ub-launcher3-dorval

7 years agoMerge "Move update popup header out of BubbleTextView" into ub-launcher3-dorval
TreeHugger Robot [Wed, 26 Apr 2017 15:56:18 +0000 (15:56 +0000)]
Merge "Move update popup header out of BubbleTextView" into ub-launcher3-dorval

7 years agoMove update popup header out of BubbleTextView
Tony Wickham [Tue, 25 Apr 2017 19:46:04 +0000 (12:46 -0700)]
Move update popup header out of BubbleTextView

Now we update from Launcher, which is both more efficient (only run it
when badges update, not whenever BubbleTextView applies an ItemInfo) and
more logical/cleaner.

Change-Id: Ib77433d9489c29e9781b3a48de37de0e07b5ba07

7 years agoMerge "Fix updateIconBadges() in All Apps" into ub-launcher3-dorval
TreeHugger Robot [Wed, 26 Apr 2017 15:46:21 +0000 (15:46 +0000)]
Merge "Fix updateIconBadges() in All Apps" into ub-launcher3-dorval

7 years agoSet the alpha to 1 when overview button is focused.
Jon Miranda [Tue, 25 Apr 2017 21:31:39 +0000 (14:31 -0700)]
Set the alpha to 1 when overview button is focused.

Bug: 37569953
Change-Id: I5c2acde3b5b443fe21e869d52bb9d2f8d98a914d

7 years agoFix updateIconBadges() in All Apps
Tony Wickham [Tue, 25 Apr 2017 21:13:20 +0000 (14:13 -0700)]
Fix updateIconBadges() in All Apps

Instead of notifyItemChanged(), we iterate over children of the
RecyclerView itself and call applyBadgeState() on affected icons.
This is the same logic we do for the workspace.

Issues this fixes:
- Icons flash when dismissing notifications
- Badge reappears on the icon while popup is open

Change-Id: I5c69d5c6bd47630c0241666b5f7f6f7ca97118f9

7 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 26 Apr 2017 12:48:55 +0000 (05:48 -0700)]
Import translations. DO NOT MERGE

Change-Id: I9c3d417862f2ae0c30ed1ee9245d00b04a2624ad
Auto-generated-cl: translation import

7 years agoMerge "Update icon badges to match spec" into ub-launcher3-dorval
TreeHugger Robot [Tue, 25 Apr 2017 20:02:37 +0000 (20:02 +0000)]
Merge "Update icon badges to match spec" into ub-launcher3-dorval

7 years agoUpdate icon badges to match spec
Tony Wickham [Fri, 24 Feb 2017 16:59:36 +0000 (08:59 -0800)]
Update icon badges to match spec

- Size defined as percentage of app icon size
- Width changes when there are 2 or 3 digits (round rect)
- Offset slightly away from the app icon
  - Had to move drawing to BubbleTextView instead of
    FastBitmapDrawable
- Hide badge when dragging and while popup is open
- Tweaks for some color/text parameters

Bug: 35744066
Change-Id: Ibb15ca634abaa0729aea637c904c4c6889a58c7c

7 years agoMerge "make sure all type of Item in DumpTarget contains component and package name...
Hyunyoung Song [Tue, 25 Apr 2017 03:48:53 +0000 (03:48 +0000)]
Merge "make sure all type of Item in DumpTarget contains component and package name b/36904684" into ub-launcher3-dorval

7 years agomake sure all type of Item in DumpTarget contains component and package name
Hyunyoung Song [Mon, 24 Apr 2017 20:01:47 +0000 (13:01 -0700)]
make sure all type of Item in DumpTarget contains component and package name
b/36904684

Change-Id: I3c71726a376fd1923e193cafe3b5a9b85a48c895

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 21 Apr 2017 03:41:42 +0000 (20:41 -0700)]
Import translations. DO NOT MERGE

Change-Id: I2ae8231a21881c4546bf042778f6e29940ca91d8
Auto-generated-cl: translation import

7 years agoMerge "Only add widgets system shortcut if widgets exist" into ub-launcher3-dorval
Tony Wickham [Thu, 20 Apr 2017 23:08:47 +0000 (23:08 +0000)]
Merge "Only add widgets system shortcut if widgets exist" into ub-launcher3-dorval

7 years agoMerge "Mutate system shortcut icons in popup before tinting" into ub-launcher3-dorval
Tony Wickham [Thu, 20 Apr 2017 22:13:20 +0000 (22:13 +0000)]
Merge "Mutate system shortcut icons in popup before tinting" into ub-launcher3-dorval

7 years agoOnly add widgets system shortcut if widgets exist
Tony Wickham [Thu, 13 Apr 2017 23:24:38 +0000 (16:24 -0700)]
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

7 years agoMutate system shortcut icons in popup before tinting
Tony Wickham [Thu, 20 Apr 2017 21:19:24 +0000 (14:19 -0700)]
Mutate system shortcut icons in popup before tinting

Bug: 36865701
Change-Id: Ib5b45fe796b03a9a4a21f1eff90a2c75479ac62e

7 years agoMerge "Deleting any ghost widget from system service:" into ub-launcher3-dorval
TreeHugger Robot [Tue, 18 Apr 2017 22:11:09 +0000 (22:11 +0000)]
Merge "Deleting any ghost widget from system service:" into ub-launcher3-dorval

7 years agoFixing adaptive icon bounds caching
Sunny Goyal [Mon, 17 Apr 2017 23:43:05 +0000 (16:43 -0700)]
Fixing adaptive icon bounds caching

Change-Id: Ifa0ed4d600fcd2c50558ea9ae6e95f3364d4949a

7 years agoMerge "[DO NOT MERGE] legacy icon treatment / circle detection Bug: 37357483" into...
TreeHugger Robot [Mon, 17 Apr 2017 23:35:38 +0000 (23:35 +0000)]
Merge "[DO NOT MERGE] legacy icon treatment / circle detection Bug: 37357483" into ub-launcher3-dorval

7 years agoDeleting any ghost widget from system service:
Sunny Goyal [Thu, 6 Apr 2017 22:02:52 +0000 (15:02 -0700)]
Deleting any ghost widget from system service:

> A one-time DB update for removing any existing ghost widgets
> Handling widget cleanup when we bulk delete workspace items during loader
> Simplifying external delete

Bug: 35634653
Change-Id: Id0c520f57aee6d75d9c0e7bcd5786a464bf9f39f

7 years agoFixing icon left on the workspace when drag operation fails
Sunny Goyal [Mon, 17 Apr 2017 21:18:55 +0000 (14:18 -0700)]
Fixing icon left on the workspace when drag operation fails

Bug: 37294517
Change-Id: I1982b71cdeacff9e15bfa00c03620888c2a225c8

7 years agoRename WidgetsAndMore to WidgetsBottomSheet
Tony Wickham [Thu, 13 Apr 2017 01:31:09 +0000 (18:31 -0700)]
Rename WidgetsAndMore to WidgetsBottomSheet

(It only contains widgets now.)

Bug: 35766387
Change-Id: I5864791a9741d1c56ac6df30125fe7a4a677b4bd

7 years agoMerge "Fix popup item animation pivot" into ub-launcher3-dorval
TreeHugger Robot [Mon, 17 Apr 2017 18:43:42 +0000 (18:43 +0000)]
Merge "Fix popup item animation pivot" into ub-launcher3-dorval

7 years agoMerge "Slightly round corners of popup arrow" into ub-launcher3-dorval
Tony Wickham [Mon, 17 Apr 2017 18:30:12 +0000 (18:30 +0000)]
Merge "Slightly round corners of popup arrow" into ub-launcher3-dorval

7 years agoSlightly round corners of popup arrow
Tony [Fri, 14 Apr 2017 18:03:10 +0000 (11:03 -0700)]
Slightly round corners of popup arrow

Bug: 35766387
Change-Id: I8d2be54c977074dbcf0d5884f44347edd0217bb5

7 years agoMerge "Updating getApplicationInfo to handle NameNotFoundException" into ub-launcher3...
TreeHugger Robot [Mon, 17 Apr 2017 17:21:34 +0000 (17:21 +0000)]
Merge "Updating getApplicationInfo to handle NameNotFoundException" into ub-launcher3-dorval

7 years agoUpdating getApplicationInfo to handle NameNotFoundException
Sunny Goyal [Mon, 17 Apr 2017 17:03:01 +0000 (10:03 -0700)]
Updating getApplicationInfo to handle NameNotFoundException

Bug: 37324177
Change-Id: If4caf7c61667fc874e7dbaff9f8c48b2c2cc107f

7 years agoMerge "Separating the DB upgrade into two paths: > schema update: changes in the...
TreeHugger Robot [Mon, 17 Apr 2017 16:42:34 +0000 (16:42 +0000)]
Merge "Separating the DB upgrade into two paths: > schema update: changes in the table schema > data update: backward compatible changes to the data" into ub-launcher3-dorval

7 years agoSeparating the DB upgrade into two paths:
Sunny Goyal [Thu, 13 Apr 2017 19:01:47 +0000 (12:01 -0700)]
Separating the DB upgrade into two paths:
> schema update: changes in the table schema
> data update: backward compatible changes to the data

Bug: 37257575
Change-Id: I856854ff2bffa2701f903a24fdc3baf6641175fd

7 years ago[DO NOT MERGE] legacy icon treatment / circle detection
Hyunyoung Song [Mon, 17 Apr 2017 04:32:20 +0000 (21:32 -0700)]
[DO NOT MERGE] legacy icon treatment / circle detection
Bug: 37357483

Change-Id: I63049ad61ad259f546fcf5077ded0a5f444e4395

7 years agoFix popup item animation pivot
Tony Wickham [Tue, 11 Apr 2017 21:42:17 +0000 (14:42 -0700)]
Fix popup item animation pivot

Now it is based on the arrow center instead of height / 2
(this used to be the same when all items were separate)

Change-Id: I76c04344400c6d306e8404c1e93765adfbd0fe23

7 years agoMerge "Ensure system shortcut icons always appear in correct order" into ub-launcher3...
Tony Wickham [Fri, 14 Apr 2017 18:01:33 +0000 (18:01 +0000)]
Merge "Ensure system shortcut icons always appear in correct order" into ub-launcher3-dorval

7 years agoMerge "Update widgets bottom sheet to match redlines" into ub-launcher3-dorval
Tony Wickham [Thu, 13 Apr 2017 22:55:57 +0000 (22:55 +0000)]
Merge "Update widgets bottom sheet to match redlines" into ub-launcher3-dorval

7 years agoEnsure system shortcut icons always appear in correct order
Tony Wickham [Thu, 13 Apr 2017 22:31:37 +0000 (15:31 -0700)]
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

7 years agoUpdate widgets bottom sheet to match redlines
Tony Wickham [Wed, 12 Apr 2017 00:21:12 +0000 (17:21 -0700)]
Update widgets bottom sheet to match redlines

- Remove "Configurable shortcuts" row, and put all widgets in one row
- Update some sizes and colors and text
- Center widget row if only one widget

Bug: 35766387
Change-Id: Ic3850feadee1cbbbdd68a772f597741d54949703

7 years agoMerge "Updating gradle and build tools version" into ub-launcher3-dorval
TreeHugger Robot [Thu, 13 Apr 2017 18:46:17 +0000 (18:46 +0000)]
Merge "Updating gradle and build tools version" into ub-launcher3-dorval

7 years agoUpdating gradle and build tools version
Sunny Goyal [Thu, 13 Apr 2017 18:24:54 +0000 (11:24 -0700)]
Updating gradle and build tools version

Change-Id: I269788d6d7798a5324a9170935c31a7c565cc214

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-dorval
TreeHugger Robot [Thu, 13 Apr 2017 13:52:06 +0000 (13:52 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 13 Apr 2017 10:57:49 +0000 (03:57 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ic0fcaa61a226e5123cc22713911a4d5113d39400
Auto-generated-cl: translation import

7 years agoMerge "Add app info icon with no shadow for popup" into ub-launcher3-dorval
Tony Wickham [Wed, 12 Apr 2017 22:35:51 +0000 (22:35 +0000)]
Merge "Add app info icon with no shadow for popup" into ub-launcher3-dorval

7 years agoAdd app info icon with no shadow for popup
Tony Wickham [Tue, 11 Apr 2017 23:21:41 +0000 (16:21 -0700)]
Add app info icon with no shadow for popup

- Also changed opacities of the system shortcut icons to match spec
  (38% black in header, 54% when expanded view is shown)

Bug: 35766387
Change-Id: I73881bf1c72c98d78a38d82c632c4954b02eff4e

7 years agoMerge "Remove reflection for a couple of methods" into ub-launcher3-dorval
TreeHugger Robot [Wed, 12 Apr 2017 00:35:01 +0000 (00:35 +0000)]
Merge "Remove reflection for a couple of methods" into ub-launcher3-dorval

7 years agoUpdate popup to match redlines
Tony Wickham [Mon, 10 Apr 2017 21:05:34 +0000 (14:05 -0700)]
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

7 years agoRemove reflection for a couple of methods
Tony Wickham [Tue, 11 Apr 2017 23:39:58 +0000 (16:39 -0700)]
Remove reflection for a couple of methods

Bug: 36855196
Change-Id: I3e6b2901d1c12fffd0172e85df98e2e17e737168

7 years agoMerge "Disable notification listener on pre-26" into ub-launcher3-dorval
Tony Wickham [Mon, 10 Apr 2017 23:19:51 +0000 (23:19 +0000)]
Merge "Disable notification listener on pre-26" into ub-launcher3-dorval

7 years agoDisable notification listener on pre-26
Tony Wickham [Mon, 10 Apr 2017 22:18:48 +0000 (15:18 -0700)]
Disable notification listener on pre-26

Also remove isAtLeastO() checks in NotificationListener

Bug: 35443111
Bug: 37207407
Change-Id: If3eef406328f73d114d826e6c8a158bdc3788cac

7 years agoMerge "Marking icon paths as non-translatable" into ub-launcher3-dorval
TreeHugger Robot [Mon, 10 Apr 2017 18:36:47 +0000 (18:36 +0000)]
Merge "Marking icon paths as non-translatable" into ub-launcher3-dorval

7 years agoMerge "Only create one bitmap to clip popup item corners" into ub-launcher3-dorval
Tony Wickham [Mon, 10 Apr 2017 16:33:35 +0000 (16:33 +0000)]
Merge "Only create one bitmap to clip popup item corners" into ub-launcher3-dorval

7 years agoMarking icon paths as non-translatable
Sunny Goyal [Mon, 10 Apr 2017 15:27:28 +0000 (08:27 -0700)]
Marking icon paths as non-translatable

Change-Id: Ifbe6c5a7edbc3ea361ae4a8ee38f9cde681813dc

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 8 Apr 2017 05:20:58 +0000 (22:20 -0700)]
Import translations. DO NOT MERGE

Change-Id: I8caf65bc71dd6114dc08746f69f693a8da9799f6
Auto-generated-cl: translation import

7 years agoOnly create one bitmap to clip popup item corners
Tony Wickham [Fri, 7 Apr 2017 16:21:25 +0000 (09:21 -0700)]
Only create one bitmap to clip popup item corners

Previously we created a bitmap the size of the entire popup item and
drew a rounded rect in it to clip the corners. Now we create a bitmap
that is only the size of the rounded corner radius, and rotate and
translate it to all four corners to achieve the same clipping.

Besides the reduced memory of this approach, it also simplifies things
when we reduce the item's height (e.g. when the second to last
notification is dismissed), because we no longer have to recreate the
background bitmap to match the new size; the translation calculations
in dispatchDraw() automatically take the current size into account.

Bug: 35869307
Change-Id: I938bbc4bd87479580287426b4197516caf1a64d4

7 years agoMerge "Launcher dump proto that will be used for:" into ub-launcher3-dorval
Hyunyoung Song [Thu, 6 Apr 2017 22:42:10 +0000 (22:42 +0000)]
Merge "Launcher dump proto that will be used for:" into ub-launcher3-dorval

7 years ago[cleanup] Shadows should not be clipped on AdaptiveIconDrawable
Hyunyoung Song [Wed, 5 Apr 2017 22:01:06 +0000 (15:01 -0700)]
[cleanup] Shadows should not be clipped on AdaptiveIconDrawable
b/36702964

Change-Id: I28d460eee6de84cd74866223b92d43274d64d334

7 years agoShadows should not be clipped on AdaptiveIconDrawable
Hyunyoung Song [Wed, 5 Apr 2017 20:15:13 +0000 (13:15 -0700)]
Shadows should not be clipped on AdaptiveIconDrawable
b/36702964

Change-Id: Ic7363196aa493b4aa6a2dffa9c3e8f3399b1b3f3

7 years agoMerge "Add support for getting widgets/shortucts for a particular package/user" into...
Tony Wickham [Wed, 5 Apr 2017 19:54:40 +0000 (19:54 +0000)]
Merge "Add support for getting widgets/shortucts for a particular package/user" into ub-launcher3-dorval

7 years agoLauncher dump proto that will be used for:
Hyunyoung Song [Mon, 6 Feb 2017 18:46:24 +0000 (10:46 -0800)]
Launcher dump proto that will be used for:

$ adb shell dumpsys activity provider com.android.launcher3/com.android.launcher3.LauncherProvider
To see how the proto is filled: go/launcher-proto-dump

b/31772480

Change-Id: I8e0f1e5e38148a3dfeabd2fc057392193b2625dd
(cherry picked from commit 6aa3729e98502d4cffc40a7e602628b85d558edd)

7 years agoAdd support for getting widgets/shortucts for a particular package/user
Tony Wickham [Wed, 29 Mar 2017 22:30:43 +0000 (15:30 -0700)]
Add support for getting widgets/shortucts for a particular package/user

Bug: 34940468
Bug: 33553066
Change-Id: I5d0131df206c6a13d4227ad28c5b094bbf1343df

7 years agoAdding support for dynamically change icon shape for AdaptiveIcons
Sunny Goyal [Sat, 1 Apr 2017 03:09:34 +0000 (20:09 -0700)]
Adding support for dynamically change icon shape for AdaptiveIcons

> This would allow developers to verify their icon designs on different
device configurations
> This settings is only visible when developer settings is enabled

Change-Id: I7e32abfede001c134f23390734dcd39c93b68b9a

7 years agoSmall UI fix for widgets/app info shortcuts
Tony Wickham [Mon, 3 Apr 2017 21:27:04 +0000 (14:27 -0700)]
Small UI fix for widgets/app info shortcuts

- Switch order of widgets & more and app info.
- Start binding widgets after starting to update these shortcuts on the
  UI thread, so that they will show up without waiting for the bind
  logic, which can take a while. We already have a callback mechanism
  for enabling widgets & more after widgets are bound, so this was how
  it was supposed to work already.

Change-Id: I5f702f9c0814d30acf6298be309c6dc30727316e

7 years agoClearing icon cache due to system app icon changes (without any SDK change)
Sunny Goyal [Mon, 3 Apr 2017 21:12:15 +0000 (14:12 -0700)]
Clearing icon cache due to system app icon changes (without any SDK change)

Bug: 36366450
Change-Id: I23b77bd2bff292dee0e9ec576ba49f03e34628a6

7 years agoMerge "Temporarily use reflection to get notification badge icon type" into ub-launch...
TreeHugger Robot [Mon, 3 Apr 2017 17:44:13 +0000 (17:44 +0000)]
Merge "Temporarily use reflection to get notification badge icon type" into ub-launcher3-dorval

7 years agoTemporarily use reflection to get notification badge icon type
Tony Wickham [Mon, 3 Apr 2017 17:18:42 +0000 (10:18 -0700)]
Temporarily use reflection to get notification badge icon type

Bug: 36855196
Change-Id: I408a98140c68f38327a6cd8ce4cc46c5f2fe34e6

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-dorval
TreeHugger Robot [Fri, 31 Mar 2017 21:25:37 +0000 (21:25 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 31 Mar 2017 01:26:20 +0000 (18:26 -0700)]
Import translations. DO NOT MERGE

Change-Id: I6e43f5ea27bb929b545923d7da58f56d57b2e57f
Auto-generated-cl: translation import

7 years agoAdd support for system shortcuts in popup container
Tony Wickham [Tue, 21 Mar 2017 00:12:24 +0000 (17:12 -0700)]
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

7 years agoMerge "Delay the PinItemRequest#accept() call until the drop animation is finished...
TreeHugger Robot [Thu, 30 Mar 2017 23:32:57 +0000 (23:32 +0000)]
Merge "Delay the PinItemRequest#accept() call until the drop animation is finished." into ub-launcher3-dorval

7 years agoMerge "Add WidgetsAndMore bottom sheet" into ub-launcher3-dorval
Tony Wickham [Thu, 30 Mar 2017 23:21:39 +0000 (23:21 +0000)]
Merge "Add WidgetsAndMore bottom sheet" into ub-launcher3-dorval

7 years agoAdd WidgetsAndMore bottom sheet
Tony Wickham [Tue, 21 Mar 2017 00:12:24 +0000 (17:12 -0700)]
Add WidgetsAndMore bottom sheet

- Contains two rows, one for widgets, and one for "configurable
  shortcuts" that have customization activities
- Extends AbstractFloatingView and uses VerticalPullDetector for
  touch interactions
- No way to show this currently; will add options to popup in followup

Bug: 34940468
Change-Id: Iab62c2cb89428f91119c9c86f9db886496c321fd

7 years agoDelay the PinItemRequest#accept() call until the drop animation is finished.
Sunny Goyal [Thu, 30 Mar 2017 22:30:47 +0000 (15:30 -0700)]
Delay the PinItemRequest#accept() call until the drop animation is finished.

This prevents the caller app from taking over the focus while animation
it running.

Change-Id: I51b6673c59e848c263727502dee90504ed3a2162

7 years agoUpdating some strings in add widget/shortcut flow
Sunny Goyal [Thu, 30 Mar 2017 19:30:41 +0000 (12:30 -0700)]
Updating some strings in add widget/shortcut flow

Bug: 36725328
Change-Id: I1006a48201fc5abb5c1f70c244c79a63f3195565

7 years agoMerge "Fixing multiwindow drag operation during with rotation." into ub-launcher3...
TreeHugger Robot [Thu, 30 Mar 2017 19:18:00 +0000 (19:18 +0000)]
Merge "Fixing multiwindow drag operation during with rotation." into ub-launcher3-dorval

7 years agoMerge "Adding logging for various interaction in PinItemRequest UI" into ub-launcher3...
TreeHugger Robot [Thu, 30 Mar 2017 18:58:17 +0000 (18:58 +0000)]
Merge "Adding logging for various interaction in PinItemRequest UI" into ub-launcher3-dorval

7 years agoMerge "Add isInMultiWindowMode bool to all logs." into ub-launcher3-dorval
TreeHugger Robot [Tue, 28 Mar 2017 19:02:14 +0000 (19:02 +0000)]
Merge "Add isInMultiWindowMode bool to all logs." into ub-launcher3-dorval

7 years agoMerge "Log when users exit Overview mode by tapping on the Workspace." into ub-launch...
TreeHugger Robot [Tue, 28 Mar 2017 19:00:58 +0000 (19:00 +0000)]
Merge "Log when users exit Overview mode by tapping on the Workspace." into ub-launcher3-dorval

7 years agoFixing multiwindow drag operation during with rotation.
Sunny Goyal [Mon, 20 Mar 2017 22:08:06 +0000 (15:08 -0700)]
Fixing multiwindow drag operation during with rotation.

> Finishing activity when rotation preference change. This ensures that
  any prefenrece change is immediately applied instead of waiting for resume
  as the new activity is always started with proper setting.
> Clearing task when starting drag in landscape mode. This ensures that a new
  activity instance is started in this case, which overrides previous locked
  rotation by launcher activity.
> Handling drag request in onCreate and enabling rotation based on it.
> Clearing any request from the launcher intent once the drag operation
  is complete

Bug: 36226746
Change-Id: I69f56c13827c25f3e1bc84935cb2acc59b6bd349

7 years agoMerge "Removing some unnecessary stacktraces from the log" into ub-launcher3-dorval
TreeHugger Robot [Mon, 27 Mar 2017 18:33:52 +0000 (18:33 +0000)]
Merge "Removing some unnecessary stacktraces from the log" into ub-launcher3-dorval

7 years agoRemoving some unnecessary stacktraces from the log
Sunny Goyal [Mon, 27 Mar 2017 18:22:36 +0000 (11:22 -0700)]
Removing some unnecessary stacktraces from the log

Bug: 36604650
Change-Id: If754aacf37fed5fdc9ff419812c0924ad136eb45

7 years agoMerge "Use notification counts (instead of assuming all 1)" into ub-launcher3-dorval
Tony Wickham [Mon, 27 Mar 2017 17:53:40 +0000 (17:53 +0000)]
Merge "Use notification counts (instead of assuming all 1)" into ub-launcher3-dorval

7 years agoMerge "De-dupe shortcuts with the same id as the main notification." into ub-launcher...
TreeHugger Robot [Mon, 27 Mar 2017 17:51:46 +0000 (17:51 +0000)]
Merge "De-dupe shortcuts with the same id as the main notification." into ub-launcher3-dorval

7 years agoMerge "Revert "Adding some logging around launcher grid when device profile changes...
TreeHugger Robot [Mon, 27 Mar 2017 17:21:48 +0000 (17:21 +0000)]
Merge "Revert "Adding some logging around launcher grid when device profile changes"" into ub-launcher3-dorval

7 years agoUse notification counts (instead of assuming all 1)
Tony Wickham [Sat, 25 Feb 2017 02:06:14 +0000 (18:06 -0800)]
Use notification counts (instead of assuming all 1)

We still ignore group summary headers, which means, for example,
we won't get Gmail unread count. But single notifications that
have numbers associated, such as messages from a single contact
will be included in the badge count. So if you have 2 hangounts
threads, one with 10 messages and one with 8, the badge would
say 18.

Bug: 34939841
Change-Id: I20b9a857d91715e10c0da400a1cee209d7b837b8

7 years agoDe-dupe shortcuts with the same id as the main notification.
Tony Wickham [Fri, 24 Mar 2017 18:31:12 +0000 (11:31 -0700)]
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

7 years agoTemporarily ignoring session broadcasts for 3 hours
Sunny Goyal [Fri, 24 Mar 2017 16:07:05 +0000 (09:07 -0700)]
Temporarily ignoring session broadcasts for 3 hours

Bug: 34957633
Change-Id: Ia82a4a33f3ab07c12e98bd9060a839d660827acd

7 years agoShow recently used instant apps provided by the app discovery service
Mario Bertschler [Thu, 23 Mar 2017 21:48:53 +0000 (14:48 -0700)]
Show recently used instant apps provided by the app discovery service
in the same section as installed apps.

Change-Id: I2efd41c69960c4982523c58893aacfc7a5d0bb2e

7 years agoAdding logging for various interaction in PinItemRequest UI
Sunny Goyal [Tue, 21 Mar 2017 18:59:04 +0000 (11:59 -0700)]
Adding logging for various interaction in PinItemRequest UI

Bug: 34766840
Change-Id: Ib29d7d4b53ab99cdf3ff253976ef55345729487b

7 years agoAdd isInMultiWindowMode bool to all logs.
Jon Miranda [Wed, 22 Mar 2017 17:25:17 +0000 (10:25 -0700)]
Add isInMultiWindowMode bool to all logs.

Example output:
D/UserEvent: action:LONGPRESS
       Source child:WORKSPACE id=0
       Elapsed container 1850 ms session 1850 ms action 0 ms
       isInMultiWindowMode true

Bug: 34250955

Change-Id: If21484e8bbb0f4f311c2eb6e94b7dcea6d2431af

7 years agoMerge "Removing the profile extra from intent and using the profile id from the profi...
Sunny Goyal [Tue, 21 Mar 2017 23:15:58 +0000 (23:15 +0000)]
Merge "Removing the profile extra from intent and using the profile id from the profile column" into ub-launcher3-dorval

7 years agoRemoving the profile extra from intent and using the profile id from the profile...
Sunny Goyal [Tue, 21 Mar 2017 22:12:01 +0000 (15:12 -0700)]
Removing the profile extra from intent and using the profile id from the profile column

The intent extra is not always correct as the profile id can change during backup restore.
This allows us to use a consistant behavior everywhere.

Change-Id: I004bd244204ca91758b1d42488e1fc13b0ccb998

7 years agoAdd support for making nav bar light separately from status bar
Tony Wickham [Mon, 20 Mar 2017 23:49:37 +0000 (16:49 -0700)]
Add support for making nav bar light separately from status bar

Bug: 34940468
Change-Id: Ie5543895e4c8b8753c84ef24633377cc985efc0d

7 years agoMerge "Move some code from AllAppsTransitionController to VeriticalPullDetector"...
Tony Wickham [Mon, 20 Mar 2017 23:52:39 +0000 (23:52 +0000)]
Merge "Move some code from AllAppsTransitionController to VeriticalPullDetector" into ub-launcher3-dorval

7 years agoMerge "Add padding to pending widget background." into ub-launcher3-dorval
Jonathan Miranda [Mon, 20 Mar 2017 23:34:42 +0000 (23:34 +0000)]
Merge "Add padding to pending widget background." into ub-launcher3-dorval

7 years agoMove some code from AllAppsTransitionController to VeriticalPullDetector
Tony Wickham [Mon, 20 Mar 2017 23:11:54 +0000 (16:11 -0700)]
Move some code from AllAppsTransitionController to VeriticalPullDetector

This makes VerticalPullDetector more generic
and able to be used elsewhere.

Bug: 34940468
Change-Id: I78f70529cb30e5c9e7748ca548f2d638c6d0811f

7 years agoRevert "Adding some logging around launcher grid when device profile changes"
Sunny Goyal [Mon, 20 Mar 2017 23:07:10 +0000 (23:07 +0000)]
Revert "Adding some logging around launcher grid when device profile changes"

Bug: 35425060
This reverts commit c29de857807680bf72ebd386cbec716b33d64780.

Change-Id: I4320be3473f914289f88c8cbb376a68af006d7de

7 years agoMerge "Removing config shortcut activities for managed profiles for apps build with...
TreeHugger Robot [Mon, 20 Mar 2017 22:20:06 +0000 (22:20 +0000)]
Merge "Removing config shortcut activities for managed profiles for apps build with older sdk" into ub-launcher3-dorval

7 years agoRemoving config shortcut activities for managed profiles for
Sunny Goyal [Mon, 20 Mar 2017 20:57:28 +0000 (13:57 -0700)]
Removing config shortcut activities for managed profiles for
apps build with older sdk

> Also fixing the bug where legacy icon with primary user gets
created when managed user failed to provide the new icon

Bug: 34392403
Change-Id: I1d56962e9520742781df6cbeb03be2b9767a8c0b