Commit Graph

7812 Commits

Author SHA1 Message Date
Sunny Goyal 953dc47fea Fixing adaptive icon bounds caching
am: 311420ffb2

Change-Id: I3a7c7a698b3559ca31f218991540114d38210d94
2017-04-18 00:12:56 +00:00
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 e46df861e8 Fixing icon left on the workspace when drag operation fails
am: 846d7e12c8

Change-Id: I2f4df4ab948443298fd3354cb4338ff9db4068ad
2017-04-17 22:36:50 +00:00
Sunny Goyal 55fddc825b 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
2017-04-17 15:28:39 -07: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 1c2291de86 Rename WidgetsAndMore to WidgetsBottomSheet
am: 343a77e609

Change-Id: I3d0c3e3a4ec1225781421567cfd9f2ea1d676bc0
2017-04-17 18:59:05 +00:00
Tony Wickham c1cac5f554 Merge "Fix popup item animation pivot" into ub-launcher3-dorval
am: 251dabfd76

Change-Id: I6be4feabc9781504b85351eca04517b8d6c31dbf
2017-04-17 18:49:06 +00: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 65a585946b Merge "Slightly round corners of popup arrow" into ub-launcher3-dorval
am: 8ae09bc376

Change-Id: I9052e1e0c85d2e2c76ed47c4c34ea9fb92e8825a
2017-04-17 18:36:05 +00:00
Tony Wickham 8ae09bc376 Merge "Slightly round corners of popup arrow" into ub-launcher3-dorval 2017-04-17 18:30:13 +00:00
Sunny Goyal 20141feb21 Merge "Updating getApplicationInfo to handle NameNotFoundException" into ub-launcher3-dorval
am: 932f25ee18

Change-Id: I126ce1c79ae58ee251d2f77e8aa8fd78c01f9d12
2017-04-17 17:29:00 +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
Sunny Goyal 0e43493f8f 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
am: d31692c0e7

Change-Id: If9b5e413401ac2b969a591acd81c8e6e1c7c2483
2017-04-17 16:46:28 +00: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 978faa9d4a Merge "Ensure system shortcut icons always appear in correct order" into ub-launcher3-dorval
am: 50ba921aa8

Change-Id: Ie296f30e81bea966e1cfc88b81b33cbc1b5bf6e0
2017-04-14 18:07:03 +00: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 14780f60c5 Merge "Update widgets bottom sheet to match redlines" into ub-launcher3-dorval
am: 3741f8d9da

Change-Id: If6fbb0dcd5ea8a947c586bddc624b98436863f92
2017-04-13 23:07:57 +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 c66c3e2ba4 Fix build - move system shortcut icon colors to theme
Change-Id: Iae248e5fdd57310adeb898305deee4c0eaee5318
2017-04-13 12:24:42 -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
Tony Wickham 5a2a655475 Merge "Add app info icon with no shadow for popup" into ub-launcher3-dorval
am: 25e8f6d83e

Change-Id: I8ea2798c98033d395e4afbbb5d86957518f33c22
2017-04-12 22:47:13 +00: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
Tony Wickham 616bb65051 Merge "Remove reflection for a couple of methods" into ub-launcher3-dorval
am: 46b3a13528

Change-Id: I193c67e00b8c6fe88602a90e066252c69cc79e42
2017-04-12 00:40:18 +00: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 bb3c1f8f7c resolve merge conflicts of ce44516dd to ub-launcher3-master
Change-Id: I6f4455c1d4bedf778850acbb1e1c7372d532e13a
2017-04-11 17:26:50 -07: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 7fc94d7aac Merge "Disable notification listener on pre-26" into ub-launcher3-dorval
am: cd4cc97f6f

Change-Id: I6e1a2de2ece9308f057e6cdea1a3a50b2dd32962
2017-04-10 23:31:42 +00: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
Tony Wickham 7178a4b4fe Merge "Only create one bitmap to clip popup item corners" into ub-launcher3-dorval
am: d4cb1f476d

Change-Id: I19fa53d61049a6c65fd59a22fcb2d2f2d069283c
2017-04-10 16:41:17 +00: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 72bdf27a3a [cleanup] Shadows should not be clipped on AdaptiveIconDrawable b/36702964
am: 830cca665c

Change-Id: Ib2a0e622cd480dbfea2ce59adc8a82f98ef2dac3
2017-04-06 16:40:44 +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 a3b60c97c6 Shadows should not be clipped on AdaptiveIconDrawable b/36702964
am: d02a29a502

Change-Id: Ia2f9a287f6f4409c4f16b5cd27364ef28a5b8bd4
2017-04-05 20:53:55 +00: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 6c300c89ec resolve merge conflicts of 128b7e59a to ub-launcher3-master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I927373593dfb1b67b504a76b1ad013357b363a6e
2017-04-05 13:14:01 -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
Sunny Goyal 2dbcfb6cb0 Build fix
Change-Id: I2395421f19e68f33d427485039aca42094a0154f
2017-04-04 16:03:07 -07: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