Commit Graph

13277 Commits

Author SHA1 Message Date
Sunny Goyal 311420ffb2 Fixing adaptive icon bounds caching
Change-Id: Ifa0ed4d600fcd2c50558ea9ae6e95f3364d4949a
2017-04-17 16:59:19 -07:00
TreeHugger Robot 8c6a2b2244 Merge "[DO NOT MERGE] legacy icon treatment / circle detection Bug: 37357483" into ub-launcher3-dorval 2017-04-17 23:35:38 +00:00
Sunny Goyal 846d7e12c8 Fixing icon left on the workspace when drag operation fails
Bug: 37294517
Change-Id: I1982b71cdeacff9e15bfa00c03620888c2a225c8
2017-04-17 14:19:23 -07:00
Tony Wickham 343a77e609 Rename WidgetsAndMore to WidgetsBottomSheet
(It only contains widgets now.)

Bug: 35766387
Change-Id: I5864791a9741d1c56ac6df30125fe7a4a677b4bd
2017-04-17 11:44:41 -07:00
TreeHugger Robot 251dabfd76 Merge "Fix popup item animation pivot" into ub-launcher3-dorval 2017-04-17 18:43:42 +00:00
Tony Wickham 8ae09bc376 Merge "Slightly round corners of popup arrow" into ub-launcher3-dorval 2017-04-17 18:30:13 +00:00
Tony 58292674e5 Slightly round corners of popup arrow
Bug: 35766387
Change-Id: I8d2be54c977074dbcf0d5884f44347edd0217bb5
2017-04-17 10:25:49 -07:00
TreeHugger Robot 932f25ee18 Merge "Updating getApplicationInfo to handle NameNotFoundException" into ub-launcher3-dorval 2017-04-17 17:21:34 +00:00
Sunny Goyal 135c1be5a3 Updating getApplicationInfo to handle NameNotFoundException
Bug: 37324177
Change-Id: If4caf7c61667fc874e7dbaff9f8c48b2c2cc107f
2017-04-17 10:03:29 -07:00
TreeHugger Robot d31692c0e7 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 2017-04-17 16:42:35 +00:00
Sunny Goyal 3c7d55bdc7 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
2017-04-17 09:36:05 -07:00
Hyunyoung Song c1cf75716b [DO NOT MERGE] legacy icon treatment / circle detection
Bug: 37357483

Change-Id: I63049ad61ad259f546fcf5077ded0a5f444e4395
2017-04-16 21:57:58 -07:00
Tony Wickham 8266115eb1 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
2017-04-14 13:32:12 -07:00
Tony Wickham 50ba921aa8 Merge "Ensure system shortcut icons always appear in correct order" into ub-launcher3-dorval 2017-04-14 18:01:34 +00:00
Tony Wickham 3741f8d9da Merge "Update widgets bottom sheet to match redlines" into ub-launcher3-dorval 2017-04-13 22:55:58 +00:00
Tony Wickham ee82b035db 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
2017-04-13 15:31:37 -07:00
Tony Wickham b5ac4ed5ec 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
2017-04-13 12:12:52 -07:00
TreeHugger Robot 950825d948 Merge "Updating gradle and build tools version" into ub-launcher3-dorval 2017-04-13 18:46:18 +00:00
Sunny Goyal 889495d8dd Updating gradle and build tools version
Change-Id: I269788d6d7798a5324a9170935c31a7c565cc214
2017-04-13 11:25:07 -07:00
TreeHugger Robot 14a499aff7 Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval 2017-04-13 13:52:06 +00:00
Bill Yi 2af7e1e574 Import translations. DO NOT MERGE
Change-Id: Ic0fcaa61a226e5123cc22713911a4d5113d39400
Auto-generated-cl: translation import
2017-04-13 03:57:49 -07:00
Tony Wickham 25e8f6d83e Merge "Add app info icon with no shadow for popup" into ub-launcher3-dorval 2017-04-12 22:35:51 +00:00
Tony Wickham d690d68f97 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
2017-04-12 14:38:37 -07:00
TreeHugger Robot 46b3a13528 Merge "Remove reflection for a couple of methods" into ub-launcher3-dorval 2017-04-12 00:35:01 +00:00
Tony Wickham ce44516dd8 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
2017-04-11 16:44:38 -07:00
Tony Wickham 8eaa8e64ac Remove reflection for a couple of methods
Bug: 36855196
Change-Id: I3e6b2901d1c12fffd0172e85df98e2e17e737168
2017-04-11 16:39:58 -07:00
Tony Wickham cd4cc97f6f Merge "Disable notification listener on pre-26" into ub-launcher3-dorval 2017-04-10 23:19:52 +00:00
Tony Wickham 5632e183f3 Disable notification listener on pre-26
Also remove isAtLeastO() checks in NotificationListener

Bug: 35443111
Bug: 37207407
Change-Id: If3eef406328f73d114d826e6c8a158bdc3788cac
2017-04-10 15:31:43 -07:00
TreeHugger Robot 3b31df70ea Merge "Marking icon paths as non-translatable" into ub-launcher3-dorval 2017-04-10 18:36:48 +00:00
Tony Wickham d4cb1f476d Merge "Only create one bitmap to clip popup item corners" into ub-launcher3-dorval 2017-04-10 16:33:36 +00:00
Sunny Goyal c3c4447fa6 Marking icon paths as non-translatable
Change-Id: Ifbe6c5a7edbc3ea361ae4a8ee38f9cde681813dc
2017-04-10 08:27:56 -07:00
Bill Yi 51c4369af1 Import translations. DO NOT MERGE
Change-Id: I8caf65bc71dd6114dc08746f69f693a8da9799f6
Auto-generated-cl: translation import
2017-04-07 22:20:58 -07:00
Tony Wickham 36579219de 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
2017-04-07 14:30:25 -07:00
Hyunyoung Song 0aa685bb6f Merge "Launcher dump proto that will be used for:" into ub-launcher3-dorval 2017-04-06 22:42:10 +00:00
Hyunyoung Song 830cca665c [cleanup] Shadows should not be clipped on AdaptiveIconDrawable
b/36702964

Change-Id: I28d460eee6de84cd74866223b92d43274d64d334
2017-04-05 15:20:00 -07:00
Hyunyoung Song d02a29a502 Shadows should not be clipped on AdaptiveIconDrawable
b/36702964

Change-Id: Ic7363196aa493b4aa6a2dffa9c3e8f3399b1b3f3
2017-04-05 13:15:13 -07:00
Tony Wickham 128b7e59a1 Merge "Add support for getting widgets/shortucts for a particular package/user" into ub-launcher3-dorval 2017-04-05 19:54:40 +00:00
Hyunyoung Song e295acaeb3 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 6aa3729e98)
2017-04-04 23:06:30 +00:00
Tony Wickham 86222d23e2 Add support for getting widgets/shortucts for a particular package/user
Bug: 34940468
Bug: 33553066
Change-Id: I5d0131df206c6a13d4227ad28c5b094bbf1343df
2017-04-04 14:36:52 -07:00
Sunny Goyal ca18746163 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
2017-04-04 12:33:59 -07:00
Tony Wickham 2f54a1625a 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
2017-04-03 15:58:50 -07:00
Sunny Goyal 9b5a97585f Clearing icon cache due to system app icon changes (without any SDK change)
Bug: 36366450
Change-Id: I23b77bd2bff292dee0e9ec576ba49f03e34628a6
2017-04-03 14:12:52 -07:00
TreeHugger Robot 39a99e7098 Merge "Temporarily use reflection to get notification badge icon type" into ub-launcher3-dorval 2017-04-03 17:44:14 +00:00
Tony Wickham a4736df685 Temporarily use reflection to get notification badge icon type
Bug: 36855196
Change-Id: I408a98140c68f38327a6cd8ce4cc46c5f2fe34e6
2017-04-03 10:18:42 -07:00
TreeHugger Robot aa57e97dc8 Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval 2017-03-31 21:25:37 +00:00
Bill Yi d97b2b176c Import translations. DO NOT MERGE
Change-Id: I6e43f5ea27bb929b545923d7da58f56d57b2e57f
Auto-generated-cl: translation import
2017-03-30 18:26:20 -07:00
Tony Wickham 26b1746593 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
2017-03-30 16:35:56 -07:00
TreeHugger Robot 4a907d0f9d Merge "Delay the PinItemRequest#accept() call until the drop animation is finished." into ub-launcher3-dorval 2017-03-30 23:32:57 +00:00
Tony Wickham d73fbb5f97 Merge "Add WidgetsAndMore bottom sheet" into ub-launcher3-dorval 2017-03-30 23:21:39 +00:00
Tony Wickham 50e5165b78 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
2017-03-30 15:48:53 -07:00