Commit Graph

16456 Commits

Author SHA1 Message Date
Tony Wickham 0228b32ce0 Merge "Close Folder when opening WidgetsBottomSheet" into ub-launcher3-dorval
am: 2bb1e74ccf

Change-Id: I6442f823d6c276add4ddb2275c5ed20aad8b29e4
2017-05-02 21:11:22 +00:00
Tony Wickham aaff476c3d Merge "Handle back-to-back height reduction animations" into ub-launcher3-dorval 2017-05-02 21:09:27 +00:00
Tony Wickham 2bb1e74ccf Merge "Close Folder when opening WidgetsBottomSheet" into ub-launcher3-dorval 2017-05-02 21:05:07 +00:00
Tony Wickham 4441055233 Relax notification filter for badges
- Allow notifications with only title or text, not both (centered in popup)
- Allow notifications without an intent (don't add onClickListener)

Change-Id: I33d9bdbe0d27347d703b6fb81eda64ebdc7429d5
2017-05-02 14:02:37 -07:00
Tony Wickham 8897b4167e Close Folder when opening WidgetsBottomSheet
Dragging a shortcut from the bottom sheet to the open folder crashes.

Bug: 37810233
Change-Id: I82c953dd67528f9f1bc5a678650e87215af347a2
2017-05-02 13:48:30 -07:00
TreeHugger Robot 41fae0a1a2 Merge "Creating a custom drawable to customize shadow." into ub-launcher3-dorval-polish 2017-05-02 17:29:21 +00:00
Jon Miranda ce76b9b141 Merge "Remove background scrim when there are no top insets." into ub-launcher3-dorval
am: 0b728568f1

Change-Id: I8ff077c0c5761e82e5ecd3bcd363738505d7172e
2017-05-01 22:42:50 +00:00
TreeHugger Robot 0b728568f1 Merge "Remove background scrim when there are no top insets." into ub-launcher3-dorval 2017-05-01 22:33:15 +00:00
Jon Miranda bdb5424fae Fade in the FolderIcon stroke after Folder animates closed.
When the Folder animates closed, it hides itself the same
time as the FolderIcon becomes visible. Because the Folder
does not have the white stroke outline, there is a visual
jump between the closed Folder and the FolderIcon.

This change is a subtle and easy step towards reducing
the visual jump.

Bug: 35064148
Change-Id: I8aeeed873e7144499d19f3b01c85bfa8a792097f
2017-05-01 19:07:56 +00:00
Jon Miranda b8b48733a9 Remove background scrim when there are no top insets.
ie. In portrait multiwindow mode, the launcher is always on the
bottom so we can remove the background scrim that is meant to
protect the status bar contents.

Bug: 36397512
Change-Id: Ie9655b0604b5bebafdfb4153b370bb655129051c
2017-05-01 12:05:10 -07:00
Hyunyoung Song d9125d84ba Merge "When creating bitmap, do not apply width/height ratio if AdaptiveIconDrawable b/37670867" into ub-launcher3-dorval
am: b4c2f07cd3

Change-Id: If56ed7ea3476c62348c1912cf94a3c9690c25d4b
2017-04-28 07:36:11 +00:00
TreeHugger Robot b4c2f07cd3 Merge "When creating bitmap, do not apply width/height ratio if AdaptiveIconDrawable b/37670867" into ub-launcher3-dorval 2017-04-28 07:28:14 +00:00
Tony Wickham 24ba787ded Handle back-to-back height reduction animations
We reduce the height of the notification item when the second to last
notification is dismissed (to remove the unused footer) and when the
last notification is removed (to remove the unused notification item).
If the former is runninng when the latter starts, the end result is
janky because we weren't properly cleaning up the first animation when
the second began. We now cancel the existing animation before starting
the second.

Bug: 36172954
Change-Id: I742c15b6f59874bc675b4c20a83e9578ac5e5387
2017-04-27 15:18:37 -07:00
Tony Wickham 19d2e7fc55 Re-enable badges, with all dots
am: f77a6f7fd7

Change-Id: I139ea47c73ee01a2777132f63b1d8add687579b0
2017-04-27 21:49:08 +00:00
Hyunyoung Song 9cb48d4a38 When creating bitmap, do not apply width/height ratio if AdaptiveIconDrawable
b/37670867

Change-Id: I60884c52e7eb4b2d6f0ae2a5dc8e7c730f1f2454
2017-04-27 14:19:58 -07:00
Tony Wickham f77a6f7fd7 Re-enable badges, with all dots
Also updated folder badge (dot) color to light gray,
added notification header back (with same number as
before, where each notification counts as >= 1),
and increased shadow opacity for the dots.

Change-Id: I53a3e0d94f23f482b55b3c10a922939ebb381314
2017-04-27 14:04:56 -07:00
Hyunyoung Song 09204172b3 [MANUAL] resolve merge conflicts of 59c0e0e91 to ub-launcher3-dorval-polish
Change-Id: I7c80b665b5216e99284f5b04b8500fc35d916985
2017-04-27 11:43:47 -07:00
Sunny Goyal da1dfa32d0 Creating a custom drawable to customize shadow.
> Fixing DrapTargetBar set to visible (with alpha = 0) in the start
causing unnecessary draw

Bug: 37616877
Change-Id: Iaaff96099910f504f6e2f81c9376ddacde50ff6a
2017-04-27 05:35:28 -07:00
Hyunyoung Song 59c0e0e919 Merge "Only apply legacy treatment on app icons that is targeting O" into ub-launcher3-dorval 2017-04-27 04:03:40 +00:00
Tony Wickham f73161b883 Support notifications with 0 count (show as dots)
am: 0530e8c608

Change-Id: I6ec98b093fbd297d2f57bea91c0eb6b051c4b3c5
2017-04-27 03:01:02 +00:00
Tony Wickham 0530e8c608 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
2017-04-26 19:39:05 -07:00
Hyunyoung Song 7ed6101218 Only apply legacy treatment on app icons that is targeting O
For shortcuts, always apply legacy treatment.

b/37357483

Change-Id: I45f373ee0bb9436bc5029c88855ecb80b93fe277
2017-04-26 13:45:54 -07:00
TreeHugger Robot 83519d3fb1 Merge "Updating color extraction to include wallpaper theme color. Also adding mathods and callbacks to pass the related data to the callbacks." into ub-launcher3-dorval-polish 2017-04-26 18:36:32 +00:00
Tony Wickham d4aac0a028 Merge "Move update popup header out of BubbleTextView" into ub-launcher3-dorval
am: 59c4ae4d89

Change-Id: I7d70478ccf17c74c65bab16641f888c105899799
2017-04-26 15:59:58 +00:00
TreeHugger Robot 59c4ae4d89 Merge "Move update popup header out of BubbleTextView" into ub-launcher3-dorval 2017-04-26 15:56:19 +00:00
Tony Wickham ca0cc05076 Merge "Fix updateIconBadges() in All Apps" into ub-launcher3-dorval
am: d570c0401c

Change-Id: Ife54bfe7a33d98bae7e71cecdc577e70fe6997e6
2017-04-26 15:50:58 +00:00
Tony Wickham 2fe09f24eb 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
2017-04-26 08:46:39 -07:00
Sunny Goyal 5e7b238a93 Updating color extraction to include wallpaper theme color.
Also adding mathods and callbacks to pass the related data to the callbacks.

Bug: 37616877
Change-Id: I7512cac7a603e8e5a05ec3a360c9eec493344b00
2017-04-26 08:42:05 -07:00
Tony Wickham 4926ebfe6d 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
2017-04-26 08:39:12 -07:00
Sunny Goyal d519052281 Separating top and bottom paddings for the hotseat
Bug: 37616877
Change-Id: I2f187576c28d62f9bb8257c9b9295edb7a8e44c0
(cherry picked from commit 751e41eb66)
2017-04-26 06:00:21 +00:00
Tony Wickham 0e96f3fea9 Merge "Update icon badges to match spec" into ub-launcher3-dorval
am: 0fa96ea2f6

Change-Id: I5f8e6bdbca13435d54e3b636564f7d3eef58ca5c
2017-04-25 23:59:41 +00:00
Hyunyoung Song 03a222ee86 Merge "make sure all type of Item in DumpTarget contains component and package name b/36904684" into ub-launcher3-dorval
am: 2a120d448e

Change-Id: I55c5f8dc728962f8b37a00892d871eeddf038632
2017-04-25 23:59:24 +00:00
TreeHugger Robot 0fa96ea2f6 Merge "Update icon badges to match spec" into ub-launcher3-dorval 2017-04-25 20:02:37 +00:00
Tony Wickham 1237df0a7c 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
2017-04-25 12:55:02 -07:00
Hyunyoung Song 2a120d448e Merge "make sure all type of Item in DumpTarget contains component and package name b/36904684" into ub-launcher3-dorval 2017-04-25 03:48:54 +00:00
Hyunyoung Song 52a77044cf make sure all type of Item in DumpTarget contains component and package name
b/36904684

Change-Id: I3c71726a376fd1923e193cafe3b5a9b85a48c895
2017-04-24 13:01:47 -07:00
Tony Wickham 623daea93b resolve merge conflicts of 6f725f283 to ub-launcher3-master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I3559969b62a9a4b1ec04697109636e8cb0fd9fc8
2017-04-20 16:24:09 -07:00
Tony Wickham 6f725f2831 Merge "Only add widgets system shortcut if widgets exist" into ub-launcher3-dorval 2017-04-20 23:08:47 +00:00
Tony Wickham cf895ccc2c Merge "Mutate system shortcut icons in popup before tinting" into ub-launcher3-dorval 2017-04-20 22:13:20 +00:00
Tony Wickham a7e1c1c088 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
2017-04-20 15:10:38 -07:00
Tony Wickham 1788442dd1 Mutate system shortcut icons in popup before tinting
Bug: 36865701
Change-Id: Ib5b45fe796b03a9a4a21f1eff90a2c75479ac62e
2017-04-20 14:19:24 -07:00
Sunny Goyal dbfc9014fe Simplifying some DB managed logic
> Adding SQLiteTransaction to make it easier to manage DB transactions
> Using try-with resource for better resource handling
> Defining utility method for iterating over cursor

Change-Id: I20b1a62d61798342825ecfeb971e1a0c63c9b6d7
2017-04-19 13:26:10 -07:00
Sunny Goyal 581a69e6d4 Merge "Deleting any ghost widget from system service:" into ub-launcher3-dorval
am: f2d8b65775

Change-Id: I1d9b7a5a532bf504aabac69691e3f83e2f181a04
2017-04-18 22:20:19 +00:00
TreeHugger Robot f2d8b65775 Merge "Deleting any ghost widget from system service:" into ub-launcher3-dorval 2017-04-18 22:11:09 +00:00
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