Commit Graph

13323 Commits

Author SHA1 Message Date
TreeHugger Robot b77aa69eee Merge "Fix center-align issue in widgets bottom sheet" into ub-launcher3-dorval 2017-05-04 23:02:21 +00:00
Tony 9d3743c3a8 Fix center-align issue in widgets bottom sheet
- Remove paddingStart
- To add padding for multiple widgets, add empty view to scrollview

Bug: 37918677
Change-Id: I5ec1208765874dda1c4439f60aaeb989c06ccd63
2017-05-04 15:53:15 -07:00
Sunny Goyal 53f93b9c15 Start settings activity in a new task, so that if the LauncherActivity
finishes from behind, the task does not enter an inconsistant state

Bug: 37921974
Change-Id: I5f943ae89ce1099d3b9cf6a4902c7fd077beb764
2017-05-04 11:24:19 -07:00
Hyunyoung Song 8f4a3963b0 Guard aginast O for checking AdaptiveIconDrawable
b/37952598

Change-Id: Ief11aa61d804f9ca44ce9199002a6e763b3bf3e9
2017-05-03 15:39:26 -07:00
TreeHugger Robot f436478b02 Merge "Initializing the Add To Homescreen setting by reading it from market app" into ub-launcher3-dorval 2017-05-03 18:41:06 +00:00
Sunny Goyal 3e443a2457 Initializing the Add To Homescreen setting by reading it from market app
> Also enabling add to home-to-homescreen feature based on install reason

Bug: 36588249
Change-Id: Icfc1edd4c31ed7eb50086f8ffb1a7858a9641b41
2017-05-03 11:24:54 -07:00
Tony Wickham 82eb1f0ea6 Merge "Use source bounds/activity options for App Info System Shortcut" into ub-launcher3-dorval 2017-05-03 18:20:41 +00:00
Tony e3c5925679 Use source bounds/activity options for App Info System Shortcut
Bug: 37923215
Change-Id: I6c3e64b7a98223ab26fde80c0a86dd169200065f
2017-05-02 21:32:27 -07:00
Hyunyoung Song 6d163e0fe7 Merge "Uninstalling app from recent apps shelf should not leave a hole." into ub-launcher3-dorval 2017-05-03 00:04:10 +00:00
Hyunyoung Song 51114f2ad3 Uninstalling app from recent apps shelf should not leave a hole.
Bug: 37751234
Change-Id: Ie36d2ab1a24523e5061582dbc0ee347444da8a78
2017-05-02 16:31:47 -07:00
Tony Wickham 61682f2fd4 Merge "Relax notification filter for badges" into ub-launcher3-dorval 2017-05-02 21:19:14 +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
Jon Miranda da8261cce3 Fix bug where system shortcuts text size is set to 0 in MW mode.
By default, the BubbleTextView sets the display to Workspace
mode, which sets the text size to be 0 in MW mode.

Bug: 37898830
Change-Id: I665611b9986f1025d54b7ddb80746d4016003313
2017-05-02 12:49:33 -07:00
TreeHugger Robot 70cbd2cdb9 Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval 2017-05-02 13:45:08 +00:00
The Android Open Source Project 3fb17b1ca6 Import translations. DO NOT MERGE
Change-Id: I06d773eb648c315dd683fdc353be5a3f34e91f2e
Auto-generated-cl: translation import
2017-05-02 03:36:29 -07: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 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
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
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
Tony Wickham ead1680e96 Remove notification listener to disable badging
Bug: 37748653
Change-Id: I80d9f7c5274604f552113c7be0319d5cd454b29c
2017-04-27 12:57:05 -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 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
Jonathan Miranda b85f5dfcba Merge "Set the alpha to 1 when overview button is focused." into ub-launcher3-dorval 2017-04-26 17:53:25 +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 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
TreeHugger Robot d570c0401c Merge "Fix updateIconBadges() in All Apps" into ub-launcher3-dorval 2017-04-26 15:46:21 +00:00
Jon Miranda 4e08b5b8ba Set the alpha to 1 when overview button is focused.
Bug: 37569953
Change-Id: I5c2acde3b5b443fe21e869d52bb9d2f8d98a914d
2017-04-26 08:39:12 -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
Bill Yi 7e07755349 Import translations. DO NOT MERGE
Change-Id: I9c3d417862f2ae0c30ed1ee9245d00b04a2624ad
Auto-generated-cl: translation import
2017-04-26 05:48:55 -07: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
Bill Yi 8c5f2f561a Import translations. DO NOT MERGE
Change-Id: I2ae8231a21881c4546bf042778f6e29940ca91d8
Auto-generated-cl: translation import
2017-04-20 20:41:42 -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
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 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 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 343a77e609 Rename WidgetsAndMore to WidgetsBottomSheet
(It only contains widgets now.)

Bug: 35766387
Change-Id: I5864791a9741d1c56ac6df30125fe7a4a677b4bd
2017-04-17 11:44:41 -07:00