Commit Graph

13338 Commits

Author SHA1 Message Date
TreeHugger Robot 441c628a75 Merge "Log whether an event happened during landscape mode or not b/38211234" into ub-launcher3-dorval 2017-05-16 18:43:30 +00:00
Hyunyoung Song d5a9b57713 Log whether an event happened during landscape mode or not
b/38211234

<sample log>
  action:TAP
  Source child:APP_ICON, packageHash=-1046965711, componentHash=-371608779, intentHash=208792422, grid(4,4), span(1,1), pageIdx=0	parent:WORKSPACE id=0
  Elapsed container 3071 ms session 3071 ms action 0 ms
  isInLandscapeMode true
  isInMultiWindowMode false
</sample log>

Change-Id: I44dfe4e7ee2a41c56a50cc2b507bbbeedc458018
2017-05-16 11:12:43 -07:00
Sunny Goyal e7539e9be6 Updating the icon shape override options
> Removing rounded rect and cylinder
> Adding tear drop shape
> Updating the label for default setting

Bug: 38216026
Change-Id: Ie31baef1171a78e2d95c617ef8fa8c669dd7c817
2017-05-16 16:26:39 +00:00
Tony Wickham 0270039b98 Accessibility fixes for moving items
- Don't open popup when using "move item" action
- Don't announce "Item moved" if dropping on original cell

Bug: 33501751
Change-Id: I7236cd51fc00c357a1d7597e2fcb68c3a7c16b0b
2017-05-11 15:20:28 -07:00
TreeHugger Robot 5cfde85cb6 Merge "Visual updates for popup" into ub-launcher3-dorval 2017-05-10 01:10:55 +00:00
Tony 0b8a6fe532 Visual updates for popup
- Update some dimens
  - Increase left padding for shortcuts
  - Adjust arrow and notification ellipsis offset accordingly
  - Align shortcut dividers to be same width as text
  - Notification text 14sp instead of 15sp
  - Increase width of popup by 12dp
- Shortcuts text 87% black instead of 54%
- Arrow has same color as attached side, so takes on header
  gray instead of white when appropriate

Bug: 37753827
Change-Id: I0844b85995f22218a3b7e605e1653cceaed6cda1
2017-05-09 20:02:23 -05:00
Jon Miranda aa6f66aad2 Fix bug where deep shortcut drag view target was skewed to the right.
Bug: 38140665
Change-Id: I9386bf70cf51b6be33264f85cbfe9e8049d0c32e
2017-05-09 13:00:49 -07:00
Bill Yi 38d2add77b Import translations. DO NOT MERGE
Change-Id: I08a7f35261493f7a1591ab1207ae7758816e13e3
Auto-generated-cl: translation import
2017-05-09 02:34:17 -07:00
Sunny Goyal 9a1227105a Updating the setAsyncExecutor call as per API changes
Bug: 37534990
Change-Id: I3cb9ea4e9aec5647a0f03e5514780f42f207ebc0
2017-05-08 08:56:28 -07:00
Bill Rassieur 833a3943ed Empty commit to trigger a build.
BUG: 38093737
2017-05-08 06:28:48 -07:00
Sunny Goyal 57266aa2bd Do not delete chost widgets when opening DB.
During restore, the data can be in inconsistant state, as the
system is yet to give us the widget map. Deleting the widget during
open would cause the AppWidgetRestoredReceiver to store the widget id
after it has been deleted.

Bug: 37935101
Bug: 38029633
Change-Id: Id3b8766229718239ae784794e848dcfbc74658ac
2017-05-05 10:55:21 -07:00
Hyunyoung Song 8dd56b7e44 Merge "Add meta data to indicate launcher_dump provider name" into ub-launcher3-dorval 2017-05-05 03:32:04 +00:00
Tony Wickham 23cae10576 Merge "Don't delete legacy shortcuts in loadWorkspace()" into ub-launcher3-dorval 2017-05-05 00:26:33 +00:00
Hyunyoung Song 37fa9b407b Add meta data to indicate launcher_dump provider name
b/36904684

Change-Id: I3e4bdae163dbe1ecfbd0a009462f13f25e2486d6
2017-05-04 17:20:20 -07:00
Tony Wickham 431a71320c Don't delete legacy shortcuts in loadWorkspace()
Legacy 1x1 shortcut intents have null package names.
This was causing an NPE when calling LauncherApps#getApplicationInfo(),
which caused those shortcuts to be removed from the workspace.

Bug: 37634887
Change-Id: I6d9876ee1634a573c1f0f94602ae373365cab01c
2017-05-04 17:08:30 -07:00
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