Commit Graph

2961 Commits

Author SHA1 Message Date
Jon Miranda c9fa640cee Update delete/uninstall/close icons.
Bug: 77641054
Change-Id: I8fb7cc4ffe835de57d8104373816deffe77870d9
2018-04-05 13:17:53 -07:00
TreeHugger Robot b49c89de39 Merge "Adding support for highlighting preference in sub-screens" into ub-launcher3-master 2018-04-04 17:08:22 +00:00
Sunny Goyal ba406e2a44 Adding support for highlighting preference in sub-screens
Change-Id: I1d5c0a7457a31755951b2f6be70a61a2d84463cf
2018-04-02 12:50:06 -07:00
Sunny Goyal 2fd7a8bc59 Updating the UI of the options popup to make it look similar to icon popup
Bug: 77327164
Change-Id: I3580df8bf8a43cb44123f203ffed9a85fa33aea7
2018-04-02 12:28:47 -07:00
Bill Yi ea4eceeba7 Import translations. DO NOT MERGE
Change-Id: I9661c8c23d5c3f6390283edb3fba1eab99e5d997
Auto-generated-cl: translation import
2018-04-01 02:13:44 -07:00
Sunny Goyal ab7ddec88e Updating some icons
Bug: 76435058
Change-Id: If2df50a738cd0bad5d0343cdd1a0542df1bee9d5
2018-03-30 11:46:34 -07:00
Bill Yi f94c0099ee Import translations. DO NOT MERGE
Change-Id: Icf33460413c168778937af5952ca08fd02f3bdca
Auto-generated-cl: translation import
2018-03-29 10:41:30 -07:00
Jon Miranda 591e360803 Match folder icon size to normalized circle icon size.
Simplifies the logic for calculating the folder icon size,
and ensures consistent sizing in different launcher viewing modes.

Bug: 74078689
Change-Id: I5cf4474fd81e55aa50b056418c95533801f07d48
2018-03-28 12:46:48 -07:00
TreeHugger Robot 7d28623f3a Merge "Revert "Using dimension instead of relyong on relativeLayout for view positions"" into ub-launcher3-master 2018-03-27 20:25:11 +00:00
Sunny Goyal a750730d90 Revert "Using dimension instead of relyong on relativeLayout for view positions"
This reverts commit 9623ed1894.

Reason for revert: b/76398583

Change-Id: I85f842d2c1511fe7ac374756e83641b59cbdd56d
2018-03-27 20:09:50 +00:00
Jon Miranda 314ab5d6b5 Raise char limit from 100 to 200 on accessibility string.
Bug: 76444955
Change-Id: I44a168bd9705ca8ab37f98a41aae0dceb5d9536a
2018-03-27 11:48:37 -07:00
Sunny Goyal 81b4c7bb3c Adding a custom view for DragHandle
> Separating page indicator and drag handle
> Page indicator always draws irrespactive of oriantation
> Drag handle is responsible for accessibility interactions
> Adding assissibility actions for DragHandle

Bug: 72500733
Change-Id: I9030337456964af1bdf77f1c01956452321f9229
2018-03-26 15:52:03 -07:00
Tony Wickham 864ae5a2b3 Merge "Add drag indicator to hotseat" into ub-launcher3-master 2018-03-26 18:11:49 +00:00
Bill Yi 0a92d818d6 Import translations. DO NOT MERGE
Change-Id: Id846f816db89d0e1920f0b08e24f0c1f69d65210
Auto-generated-cl: translation import
2018-03-23 18:30:15 -07:00
Tony Wickham 7c3dd1f14e Add drag indicator to hotseat
Change-Id: Iad5b08ad290f07c6cdd3c9091e160b5af859859e
2018-03-23 17:34:04 -07:00
Jon Miranda a589814dba Show instruction toast when user taps on drag handle.
Bug: 74369785
Change-Id: I7017266efcb0db70a8d151eed10442292cb61e70
2018-03-22 16:32:33 -07:00
Sunny Goyal 9623ed1894 Using dimension instead of relyong on relativeLayout for view positions
Search box can be hidden as a result of various state flags. But the dependent
views should still retain their positions

Change-Id: I820ac11d120f9c78a457e64f3f21d9e8ff3f6110
2018-03-22 14:42:00 -07:00
Sunny Goyal c9d3d06773 Disabling default focus from icons as we use an animated focus indicator
Change-Id: I9d3f1b5f5710ff8931f02f1a3a41e4986b4e0f9c
2018-03-22 12:18:35 -07:00
Tony Wickham a97f0f20cd Support multiple Views of extra hotseat content
Also adjust workspace page indicator:
- Center vertically
- Rounded corners

Change-Id: I96c2f3da3522d70726f544126b516c33c8fb7bc8
2018-03-21 15:53:11 -07:00
Sunny Goyal 2e38cf4825 Merge "Changing the overviewState to show appsearch and floating header" into ub-launcher3-master 2018-03-20 17:01:49 +00:00
TreeHugger Robot 76d557446d Merge "Disabling unnecessary requestLayout calls in BubbleTextView" into ub-launcher3-master 2018-03-20 03:14:08 +00:00
Sunny Goyal 7185dd63eb Changing the overviewState to show appsearch and floating header
Change-Id: I2cfd61cfc9978e4c8e4520f0f7217e49e7344c79
2018-03-19 20:02:34 -07:00
TreeHugger Robot 1c75a77df6 Merge "Accessibility improvement around blue user education card" into ub-launcher3-master 2018-03-19 19:18:46 +00:00
Sunny Goyal 66dccad6ff Disabling unnecessary requestLayout calls in BubbleTextView
> Disabling layout change when updating icon, if previously set
> Setting the ellipsis behavior to end, to disable relayouts when
  changing text

Change-Id: Ic00c207c0372724daebd8ee1d748f5cf5aa56457
2018-03-19 12:02:53 -07:00
Tony Mak 913a7da58c Accessibility improvement around blue user education card
1. Group the entire card into one element
2. Add label for close button
3. Announce closed when the card is gone

FIXES: 74517054

Change-Id: I8fe41d4c5e88276460c3f0486168f0ef56d8fb60
2018-03-19 18:24:23 +00:00
Bill Yi c8e16b42b4 Import translations. DO NOT MERGE
Change-Id: Ic5051814978c57561804797f03548c61575289d9
Auto-generated-cl: translation import
2018-03-19 07:49:00 -07:00
Bill Yi 7ce8ad1c70 Import translations. DO NOT MERGE
Change-Id: I1d302f9e40eb64f48ab1b5535d2a62dd4c18ca55
Auto-generated-cl: translation import
2018-03-16 13:52:30 -07:00
TreeHugger Robot bac14afd1e Merge "Adding support for prefenrece search in QuickStep" into ub-launcher3-master 2018-03-14 23:10:42 +00:00
TreeHugger Robot d614d66fbb Merge "Fix accessiblity issue around work tab" into ub-launcher3-master 2018-03-14 17:42:25 +00:00
Tony Mak 98f7350f8f Fix accessiblity issue around work tab
1. Instead of always announcing "Apps list", we now announce
"personal apps list" and "work apps list" if tab is there.
2. Fix an issue that "personal" and "work" are announced twice.
3. Work footer is now announced as a group

FIX: 71703082

Change-Id: I0240bc04df09a5599540cfe67f0f48156f285548
2018-03-14 17:32:18 +00:00
Sunny Goyal 7c7be8c20a Simplifying options popup and overview handling
> Removing support for page drag-n-drop from pagedView
> Removing Overview UI from Launcher3 without quickstep and using options popup instead
> Removing touch handlers from CellLayouts and showing options popup based on workspace long press
> Excluding touch outside inset when showing the popup

Bug: 74136505
Change-Id: I34c2a7ff58452db26f5d1a85d554be40fc75f2b8
2018-03-13 12:57:32 -07:00
Sunny Goyal 3fbca15555 Adding support for prefenrece search in QuickStep
Bug: 62292864
Change-Id: Ic112626ca9c5942c91ced4ab42e64cbce4657701
2018-03-09 12:57:11 -08:00
Sunny Goyal 016d7e93c1 Using spring layout for widget sheet
Bug: 72811152
Change-Id: Ifd4ade7327589871532288eb2982cf5b4f084979
2018-03-09 11:10:43 -08:00
Mario Bertschler 14a89262f1 Using edge effect to trigger spring animation for all apps.
Bug: 72811152
Bug: 72059944

Change-Id: Ied7b51caa2fb48a2fda126d59e4eaf6a35edded3
2018-03-08 11:16:53 -08:00
Sunny Goyal 3661bfac0b Fixing fast scroller touch handling in all-apps and widget sheet
Also removing scrim view, instead drawing the scrim manually

Bug: 73085356
Change-Id: I188c6c9b1685e22d5d97b38dd5d3e960b655c9ba
2018-03-06 11:41:43 -08:00
Sunny Goyal d912e3f82a Merge "Simplifying all-apps search box" into ub-launcher3-master 2018-03-06 00:12:59 +00:00
TreeHugger Robot d90d04b1ec Merge "Updating Launcher rotation logic" into ub-launcher3-master 2018-03-05 23:44:54 +00:00
Sunny Goyal 726bee7d5d Removing click-feedback shadow generation logic in BubbleTextView
Instead of animating the shadow, animating the icon scale. This avoids
unnecessary bitmap creating at app-launch and also plays nice with the
app-launch transition

Change-Id: I1d3d24bc7212a6d659855ff1002a45388e269e52
2018-03-05 14:56:38 -08:00
Sunny Goyal 623eddd7e8 Updating Launcher rotation logic
When auto-rotate is on, launcher allways allows rotation. This allows uses to use
locked rotation feature is available on the device
When auto-rotate is off, workspace does not allow rotation, but overview in quickstep
will allow rotation

Bug: 73872056
Change-Id: Ie12365c268fd5e4958634ed97b5a33dcadc691e2
2018-03-03 00:41:09 -08:00
TreeHugger Robot 85f1eed52d Merge "Adding support for hiding widgets from the widget tray and reconfiguring widgets" into ub-launcher3-master 2018-03-03 00:49:24 +00:00
Sunny Goyal b29a5fa55c Adding support for hiding widgets from the widget tray and reconfiguring widgets
> Removing AppInfo target
> Switching between uninstall and setup based on the drag view

Bug: 63931362
Change-Id: Iccd6f965fa3d61992244a365efc242122292c0ca
2018-03-02 13:20:09 -08:00
TreeHugger Robot ae9e85b8e9 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-03-02 19:59:42 +00:00
Bill Yi 74fecc2ca8 Import translations. DO NOT MERGE
Change-Id: I58cfb1ce1d9bed7bd094ed003e7816fbc63cb153
Auto-generated-cl: translation import
2018-03-02 01:29:19 -08:00
Sunny Goyal c466b173d5 Adding a label for the notifiation service
Bug: 72314360
Change-Id: Ib7ae98015241cf6548dbb4d615cae514a4dde983
2018-03-01 16:10:37 -08:00
Sunny Goyal dbd6bb348c Simplifying all-apps search box
> Giving the search box a solid background so that it work fine with scrolling
> bottom shadow logic for search box

Bug: 73085356
Change-Id: Ie4dc4922be39ffd8e2d562becedbd4c6f820e6c9
2018-03-01 15:58:11 -08:00
Sunny Goyal 6639a5dfe0 Updating the scrim and landscpae ui
> Instead of views, using a custom class to draw the color scrims
> All-apps has full screen UI
> Quickstep does not have search box in landscape

Bug: 73085356
Change-Id: I360a78a2ade0134daad29fe712796cd39a381fbb
2018-03-01 11:23:46 -08:00
TreeHugger Robot fe560d802a Merge "Update widget full sheet / bottom sheet to have top rounded corners." into ub-launcher3-master 2018-02-27 18:34:27 +00:00
Tony Mak 9a026e7672 Update the user education text as the badge is no longer in orange
Change-Id: Ic13b86bed50356a1e01e01ad350e5f9882845b69
FIX: 73944227
2018-02-27 17:38:08 +00:00
Bill Yi bdb0348992 Import translations. DO NOT MERGE
Change-Id: Idd59dca233e29983e7b7145a2595e7880b12f878
Auto-generated-cl: translation import
2018-02-17 03:04:05 -08:00
Sunny Goyal 66f2b35320 Adding a utility class to simplify main process initialization.
Change-Id: I796cf758d2a25cf8fd5f9a9b78a7977fd54ca451
2018-02-13 17:08:09 -08:00
Jon Miranda 84e2436220 Update widget full sheet / bottom sheet to have top rounded corners.
Bug: 71775241

Change-Id: I11b5adc555f48f44cf8167e8699cae1dfe164736
2018-02-13 16:18:19 -08:00
Sunny Goyal 0bd7f4f2dc Using paged view for all-apps tabs
Bug: 72811152
Change-Id: I0cca426d935f079c923b93fe3d4399f87778fe95
2018-02-13 09:55:29 -08:00
Bill Yi 2fd04c2def Import translations. DO NOT MERGE
Change-Id: Ibfab0e5e1709f527c4fa4fcae33522bf47826b25
Auto-generated-cl: translation import
2018-02-12 12:18:27 -08:00
Tony Mak a5e7040219 Add a close button at the top right hand corner of the blue card
FIX: 72804302

Change-Id: Iac7c369ead27c211c046f318c3b9588d73a594d4
2018-02-06 17:25:01 +00:00
Tony Wickham dccf3956c1 Merge "Set hotseat importantForAccessibility=no" into ub-launcher3-master 2018-02-06 02:38:27 +00:00
Tony Wickham c1103db25b Merge "Add notification count to content description for badged apps" into ub-launcher3-master 2018-02-06 02:38:10 +00:00
TreeHugger Robot 0ad5131d77 Merge "Removing support for app prediction from Launcher3" into ub-launcher3-master 2018-02-06 00:55:56 +00:00
Tony 220d45bde8 Set hotseat importantForAccessibility=no
Bug: 72500241
Change-Id: Ic98ec0f6235b3deef91e3490c8d5695fb39ee82e
2018-02-05 11:11:13 -06:00
Tony Wickham 305e920048 Add notification count to content description for badged apps
Bug: 70389249
Change-Id: If7f43941d501ba807adbb33d489da3944c012e94
2018-02-05 10:08:52 -06:00
TreeHugger Robot ac0a506072 Merge "Ditch work profile orange and use the accent color instead" into ub-launcher3-master 2018-02-01 17:38:21 +00:00
Tony Mak d6947d2729 Ditch work profile orange and use the accent color instead
FIXES: 72804074

Change-Id: If9dfd6eceb6b3d3365c32859d5cc13d6d49be1a0
2018-02-01 17:16:58 +00:00
Tony cb7954901f Fix system shortcut icon color in popup menu
If a system shortcut icon has a color other than white, then the
default tintMode (src_atop) will result in the wrong color. In
this case, ic_widget recently changed fillColor from white to
textColorPrimary, resulting in a darker color for light wallpapers.

Bug: 72383282
Change-Id: I167858ef3fcc5877e429c11aa9f68f94ba4b8f29
2018-01-31 16:02:59 -06:00
Sunny Goyal b1d222e9a7 Removing support for app prediction from Launcher3
Derivative projects can extend the FloatingHeader to add support
to custom content in all-apps screen.

Change-Id: I4e29221a72e5a077a756713a6774cda7ecde8f1b
2018-01-30 20:53:11 -08:00
TreeHugger Robot d08593bc88 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-01-27 15:15:29 +00:00
Bill Yi 390d267943 Import translations. DO NOT MERGE
Change-Id: I7aba482358326eaa0128448165d44f4d9a2a30c6
Auto-generated-cl: translation import
2018-01-27 04:12:39 -08:00
Jonathan Miranda 3c24060b62 Merge "Refactor LauncherAppTransitionManager & polish for new app transitions." into ub-launcher3-master 2018-01-26 00:49:04 +00:00
Sunny Goyal 426345bfc4 Adding AppsStore for handling various app updates
Change-Id: Ia2242ce583576ace0924ef7142793ba37f4adcb9
2018-01-25 15:19:29 -08:00
Jon Miranda 54441f5df9 Refactor LauncherAppTransitionManager & polish for new app transitions.
* Add start delay when launcher resumes from all apps or landscape.
* Track the last app transition animator and cancel it before beginning a new one,
  otherwise the animators can conflict with each other.
  ie. Opening an app from all apps and then immediately pressing back to return to
      all apps.
* Use class overrride instead of UiFactory.

Bug: 70220260
Change-Id: I4755d45d820f9d551e443d6c4a148e8789c5bc57
2018-01-25 14:32:47 -08:00
Sunny Goyal cfb630f8de Using a single launcher layout for all configurations
Bug: 71709920
Change-Id: Ib23112bc1636007cb41e1919a855bbf5298884b6
2018-01-23 14:31:26 -08:00
Sunny Goyal 01ce755753 Removing unused app discovery support
Change-Id: I670be29851b232caa5c05624ae37ae5e92a8b65f
2018-01-23 13:53:03 -08:00
Sunny Goyal cd77ba0cdd Merge "Adding a horizontal popup when when workspace is longPressed" into ub-launcher3-master 2018-01-19 23:22:21 +00:00
Sunny Goyal 02424b20f3 Adding a horizontal popup when when workspace is longPressed
Change-Id: I5b3c48262c246bfe53e0010ca89c820f42503eef
2018-01-19 15:11:10 -08:00
Sunny Goyal d8a3f3c251 Merge "Using same layout for drop-target bar in landscape and portrait" into ub-launcher3-master 2018-01-19 20:39:46 +00:00
Sunny Goyal d1b3f5cb38 Using same layout for drop-target bar in landscape and portrait
> Adding a tooltip on drag over when the text is not visible

Bug: 71709920
Change-Id: I1897a8dacd191fb1aeaec37f5d5c73c49517192a
2018-01-19 12:16:54 -08:00
Jon Miranda c385e3a2d0 Change all rounded corners to 8dp.
Bug: 71775241
Change-Id: I15b499a1f75d530c874b8616cbb330eae7e3ab07
2018-01-19 11:01:00 -08:00
TreeHugger Robot 1d35642858 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-01-19 00:12:21 +00:00
Jon Miranda de43a71b06 Move scrim from DragLayer to LauncherRootView.
This change will make opening/closing animations a lot cleaner.

Change-Id: I7f8ae301a9a126023833e282d6654bebd09bb306
2018-01-18 14:15:45 -08:00
Bill Yi 073090cda8 Import translations. DO NOT MERGE
Change-Id: I86bddb494cc0381073b1743ede0ab96e78c4676b
Auto-generated-cl: translation import
2018-01-18 13:53:11 -08:00
Tony Mak b5950bbd6c Update label accordingly when work mode is changed
Also, updates the work related strings accordingly.

Fix: 71987096

Change-Id: Iedbf6ee04f3a165a392efdf2bd351817997817ca
2018-01-16 21:33:56 +00:00
Mario Bertschler 7662a3e917 Enabling to retrieve a badge-package as an extra in ShortcutInfoCompat for
whitelisted package.

> badging respects the badge-package extra

Change-Id: I4e06cd497dff91949f8b0a42c7f3d5aaa724c038
2018-01-16 11:29:34 -08:00
TreeHugger Robot b5d047ca14 Merge "Removing layout handling in DeviceProfile and moving it to individual views" into ub-launcher3-master 2018-01-10 23:25:26 +00:00
Sunny Goyal 07b6929cd9 Removing layout handling in DeviceProfile and moving it to
individual views

Bug: 71709920
Change-Id: I8300fa7a84b31898bdb135d774cca576d2928525
2018-01-10 15:13:25 -08:00
Sunny Goyal b60778114f Merge "Making LauncherIcons thread safe" into ub-launcher3-master 2018-01-10 20:03:15 +00:00
Bill Yi 1b92320c62 Import translations. DO NOT MERGE
Change-Id: Ie11ad3fd010a4c408dcbb9e9d59e6e9861179721
Auto-generated-cl: translation import
2018-01-10 09:03:52 -08:00
Sunny Goyal 18a4e5aefb Making LauncherIcons thread safe
Creating a pool of LauncherIcons so that they can be used from multiple threads

Change-Id: Idc7b5ddb47b6e338a5389f3c4faa6f63de108c72
2018-01-09 17:30:52 -08:00
Sunny Goyal 228153d92a Updating landscape layout for launcher/quickstep
> Hotseat is tied to navbar (on left in seascape)
> Search box shows up in Overview (clicking it would crash for now)
> All-apps is no longer fullscreen in landscape
> Recents cards are appropriately scaled down
> Hotseat is visible in Overview

Bug: 70179916
Change-Id: I53149eaeac9557e8a01021b7e2d139f3d6ceef37
2018-01-08 13:53:44 -08:00
TreeHugger Robot 01629fea69 Merge "Consume work mode API" into ub-launcher3-master 2018-01-04 19:14:17 +00:00
Tony Mak 6eeb040d86 Consume work mode API
Fix: 69905244

Change-Id: I5958b3a2ebba2fa0e0f69448d5526dc72ed6a97b
2018-01-04 19:06:01 +00:00
Sunny Goyal 179249d804 Dominant color is part of icon cache
> Calculating extracted color during icon generation and storing it in model and DB
> Removing unused logic avoid various types of badge rendering
> Icons are badged with extracted colors, while folder is badged with theme color

Bug: 35428783
Change-Id: I93e30c52fbded7515c3ae1778422e84672eafb56
2018-01-03 16:55:58 -08:00
Sunny Goyal 8c3c9d2634 Merge "No more waiting around for resume" into ub-launcher3-master 2018-01-04 00:50:25 +00:00
Tony Wickham f62255e3ea Merge "Fix popup container alignment issues" into ub-launcher3-master 2018-01-02 20:07:08 +00:00
Tony efacffa08a Fix popup container alignment issues
- Arrow did not line up with the icon when right aligned
- Popup was always centered horizontally in RTL instead
  of aligning with the icon

Change-Id: I90e065d0b0c1c59166e5c2e5de5e6cff9126ee6f
2017-12-22 13:54:08 -08:00
Sunny Goyal 29947f0b53 No more waiting around for resume
Apply model updates as son as they arrive instead of waiting for onResume.
Various workspace items do not use any configuration dependent resources.
For Widgets, we wait until the host starts lietening before inflating the actual view.

Change-Id: Icb2f5e5940c1ce6c27062ccd34eff87e80af5ab1
2017-12-19 12:50:17 -08:00
Sunny Goyal e15e2a8267 Adding an empty page in Recents view corresponding to workspace
The page is aligned to the workspace card and shows a widgets button
in the empty region

Change-Id: I479c47a2fbac4b3ef1aaf833d9fe82b5d7e10ddc
2017-12-19 10:06:15 -08:00
Tony Mak d33d081db3 Merge changes I218fe7d9,I60ef59de into ub-launcher3-master
* changes:
  Make work footer stick to the bottom if there are only a few apps #2
  Make work footer stick to the bottom if there are only a few apps
2017-12-15 17:11:17 +00:00
Tony Mak 2bfa4d469a Make work footer stick to the bottom if there are only a few apps #2
1. Move the work footer divider into the container, so it is translated
   with the rest of the footer.

2. Fixed the scrollbar issue in work tab by putting the footer height
   in AllAppsRecyclerView

3. We planned to drop the company name, and decided to use
   "Managed by your organisation".

4. Rename WorkModeToggleContainer to WorkFooterContainer as
   we are using work footer in else where.

BUG: 70571983
Change-Id: I218fe7d9970780a1a457ee450f1a32e7a46d9766
2017-12-15 11:40:07 +00:00
TreeHugger Robot d56d7b9700 Merge "Updating the hotseat background to a solid color with rounded corners" into ub-launcher3-master 2017-12-14 20:27:44 +00:00
Sunny Goyal b532dfe45d Updating the hotseat background to a solid color with rounded corners
Change-Id: I297920518f925e122f2e9f55a68228b96b42ea27
2017-12-14 11:43:48 -08:00
Mario Bertschler d8ab4671e3 Moving divider line into predictionview.
Change-Id: I40753aaa154023641cead2bd7dcf906fa5a4c2d7
2017-12-14 11:20:46 -08:00
Sunny Goyal 2cdaf57f10 Make work footer stick to the bottom if there are only a few apps
Bug: 70571983
Change-Id: I60ef59de0cfcbc8df24b270d0b6d2f6439ccad44
2017-12-14 17:27:09 +00:00
Bill Yi ff52bbe8a4 Import translations. DO NOT MERGE
Change-Id: I8be25c59975e669e0748a3660fab3f4157eed88a
Auto-generated-cl: translation import
2017-12-12 15:11:47 -08:00
Sunny Goyal d96072e63e Merge "Removing horizontal bar from page indicator" into ub-launcher3-master 2017-12-12 01:33:27 +00:00
Mario Bertschler 846ba918ff Separating predictionrowview into a separate layout file.
This enables overriding the predictions_view file.

Change-Id: Ie42ce37e1bcd3c3c7b51e0e734e7c01a6f9b9a98
2017-12-08 14:51:22 -08:00
Tony Mak b74ac8d3a1 Merge "Tab indicator of work tab should be in orange color" into ub-launcher3-master 2017-12-08 11:09:31 +00:00
Bill Yi a704cac421 Import translations. DO NOT MERGE
Change-Id: Ic201b6f9b3e92db0ec1548704582fb3afa30af83
Auto-generated-cl: translation import
2017-12-07 17:02:20 -08:00
Mario Bertschler ea0eb4bb4b Forwarding touch events from floating header to recyclerview.
Additionally adds little sidepadding to the tabs buttons and fixes yPos
calculations for the scrollbar.

Bug: 69966700
Change-Id: I9d236ce7a782090f5d17931839f24b65b4ce7019
2017-12-07 08:54:36 -08:00
Tony Mak 195f005448 Tab indicator of work tab should be in orange color
Also fix the tab according to the spec.

Fix: 70272233

Change-Id: Ib4a0446d52a8488aadada1b823b3f541c4031d43
2017-12-07 15:37:38 +00:00
Mario Bertschler 3d87ed17b3 FloatingHeaderHandler refactored into custom view FloatingHeaderView.
No logical change.

Change-Id: I9a6dadb151872abe9915e96833af530ca08ddb8e
2017-12-06 11:45:49 -08:00
TreeHugger Robot adaeeee690 Merge "Fixes for fast-scrollbar when using work profile tabs in all apps." into ub-launcher3-master 2017-12-06 17:29:22 +00:00
Sunny Goyal e969c68c7e Removing horizontal bar from page indicator
> Removing the clickable bar from pageIndicator in portrait view
> Moving onClick logic to respective classes

Change-Id: I83a8df90d8c5442890bc09fdda17a82b9d134b8a
2017-12-05 16:57:48 -08:00
Mario Bertschler 2d3157a0bf Fixes for fast-scrollbar when using work profile tabs in all apps.
- do not hide scrollbar between switching tabs
- full scrollbar height
- show predictionrow only when fully scrolled to top

Bug: 70037972
Bug: 68713881

Change-Id: Icaa434ce2726b75d22ec4ac3287ab2b0e18ce42b
2017-12-05 14:36:16 -08:00
Tony Mak 191b688cc8 Bottom user education view shown in work tab
Introduced a BottomUserEducationView for similar use case.

Screenshot: https://hsv.googleplex.com/4856820942241792

BUG=69963630

Change-Id: Ia818ee44fa5ce97ad1778f33e6a9a3a36cea5017
2017-12-04 17:36:33 -08:00
Bill Yi a11d66d4c0 Import translations. DO NOT MERGE
Change-Id: I750e9a7d7c51e1092679cdda9874fb01ccb6a824
Auto-generated-cl: translation import
2017-11-30 16:24:38 -08:00
Tony Mak 6ffe4e0eee Add work profile footer in work tab
Screenshot(work mode is on): https://hsv.googleplex.com/6279751685636096
Screenshot (work mode is off): https://hsv.googleplex.com/6279751685636096

TODO:
It is just the UX bit, once the platform change is in, we should then
consume the new API to
1. Turn on / off work mode
2. Get the organization name and set the textview accordingly.

BUG=69905244

Change-Id: Id94ae57625d6b629dac89c1c28f8d65f395fff6c
2017-11-29 20:37:11 +00:00
TreeHugger Robot 12b4c4ba58 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-11-20 20:53:43 +00:00
Bill Yi 6383659bab Import translations. DO NOT MERGE
Change-Id: I9b52987bd708c5b2b955b0446f42db329ba02ec8
Auto-generated-cl: translation import
2017-11-20 12:44:23 -08:00
Mario Bertschler 2153e1c814 Implementation of PredictionRowView.
> Enable to use floating for prediction row even without tabs.
> Behind ALL_APPS_PREDICTION_ROW_VIEW feature flag.
> Expand/Collapse personal/work tabs in stopped intermediate state.

Bug: 68713881
Change-Id: I7817e7b7c6f572358f2b9a7a347339a9081708ee
2017-11-16 17:07:44 -08:00
Sunny Goyal 7149889dc0 Merge "Simplifying app icon popup" into ub-launcher3-master 2017-11-16 01:15:37 +00:00
Sunny Goyal 00ac920241 Simplifying app icon popup
> Using a single linearLayout instead of multiple nested views
> Using clipToOutline for rounded corners instead of using canvas.saveLayer
> Removing nested view elevations and overdraw
> Using LayoutTransition for animating layout changes, instead of manually creating animators

Change-Id: I8e57092f52ca5a032a2756594fdd39788acc5a0d
2017-11-15 16:43:20 -08:00
Mario Bertschler 510a64d099 Adding a sliding tab strip to the custom tab layout.
Bug: 68713881

Change-Id: Ib0873482f80903611f183ccf430185f40a292f8e
2017-11-15 16:19:34 -08:00
Mario Bertschler ac9408a5cd Enable work profile tab in all apps.
This CL will bring two tabs to all apps: Personal and Work,
currently only if the user has a workfile set up and
behind a feature flag defaulting to disabled.

Bug: 68713881

Change-Id: Ib5a558281ef3593359db3ad593ee1d0cf279f547
2017-11-14 10:28:54 -08:00
TreeHugger Robot f405f507b7 Merge "Load some recent tasks" into ub-launcher3-master 2017-11-14 18:13:08 +00:00
Winson Chung b63b44c3d5 Load some recent tasks
Bug: 69166452
Test: Build quickstep
Change-Id: Id4b0172256d6920616a6b9529d61abd1fe0c1a36
2017-11-13 18:02:44 -08:00
Sunny Goyal 96f4961d97 Merge "Fixing wrong xml refenrece when the packageName is changed" into ub-launcher3-master 2017-11-13 22:10:23 +00:00
Sunny Goyal ea529083bd Using view elevation for shadow during click feedback instead of
creating a shadow bitmap

Change-Id: I331186664c3c448596af3172e0e080921a6a1908
2017-11-08 15:13:10 -08:00
Sunny Goyal 3cf2d5093f Fixing wrong xml refenrece when the packageName is changed
Change-Id: I276d22e82dbef65eaa0f6c3331d7990292a62bc9
2017-11-07 15:41:16 -08:00
Sunny Goyal 16764588c9 Separing the overview states for normal and quickstep builds
In QuickStep, adding a placeholder ScrollView and changing the state logic
appropriately to handle that

Change-Id: I10223c0692788d6e5dbf8c408c01cafb4e39bd2c
2017-11-07 09:46:20 -08:00
Sunny Goyal 0ab09fcf7b Deleting sample code demonstrating how to extend Launcher3
Launcher already includes Launcher3Go build flavour and we will
be adding another build flavour for RecentsUI. There is no need
to maintain another build which is not used anywhere.

Change-Id: I9287f62691d57750460ccc9d6859c7fa11c99956
2017-10-30 09:28:03 -07:00
Sunny Goyal 4d49f9a8ac Removing animated caret drawable
> Both landscape and portrait UI will show a static drag handle
> In landscape the handle is drawn below the all-apps scrim,
  while in portrait it moves with the hotseat

Change-Id: Ia6964c6f98feb8ba90517e23667d8c68bc2f6d35
2017-10-27 02:44:49 +00:00
Sunny Goyal c99cb174c3 Moving some state specific logic to subclass of LauncherState
Bug: 67678570
Change-Id: I1316f91c9f19bd572e4a0da67a22fa8921e1dcf9
2017-10-20 13:56:47 -07:00
Sunny Goyal 910be3c05d Merge "Launcher state management cleanup" into ub-launcher3-master 2017-10-17 20:47:25 +00:00
Sunny Goyal aeb1643ec6 Launcher state management cleanup
> Removing Widgets and related states
> Fixing different durations being used when opening/closing all-apps
> Removing some unnecessary object allocations when changing state without animation
> Differentiating widget bootm sheel and full sheet in logs

Bug: 67678570
Change-Id: Ic169528736d04ee0b38564b4f96595ba066eabda
2017-10-17 12:42:08 -07:00
TreeHugger Robot 155ad7f9bd Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-10-16 22:18:03 +00:00
Bill Yi a4ec5b45d3 Import translations. DO NOT MERGE
Change-Id: Id64734c3e855af2dc1fe94de1cf6635bd2741e29
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-10-16 14:26:10 -07:00
Sunny Goyal f1fbc3fbe7 Converting widget panel into a floating view
> The widget panel is only inflated when needed
> Using the swipe up/down interaction for widgets tray
> Removing additional view wrappers from all-apps
> Widget tray is preserved across activity recreation
> Launcher no longer has WIDGET state, the actual code around
  the states will be removed in a follow-up cl

Bug: 67678570
Bug: 67585158
Change-Id: Ia29a7c33ec81e6c53cc24e2906b7022b6f41755b
2017-10-13 18:47:54 -07:00
TreeHugger Robot 661e558321 Merge "Removing unnecessary layout pass happening due when chaning gradientView visibility" into ub-launcher3-master 2017-10-05 22:09:24 +00:00
TreeHugger Robot 8838b8e0e5 Merge "Removing extraction service and palette api dependency" into ub-launcher3-master 2017-10-03 20:56:02 +00:00
Sunny Goyal 3792096688 Allowing the widgetBottomSheet to be dragged
even when the touch is started from outside the panel

Removing various instanceOf checks in onNewIntent and onBackPress
and moving all the corresponding logging in the FloatingView
This simplifies handling of panel specific log and avoids
missing a particular panel type in the if-else statement.

Bug: 64751884
Bug: 64751923
Change-Id: I98f5aae18560a64be73c9efcf495479740d49a00
2017-10-02 16:18:52 -07:00
Sunny Goyal d66e3b6a65 Removing unnecessary layout pass happening due when chaning gradientView visibility
Change-Id: I0d8f0c2c995885143156a27536b0a2185d5eb0b8
2017-10-02 15:27:21 -07:00
Sunny Goyal f2dd4216c1 Removing extraction service and palette api dependency
Change-Id: I30ad1a1462a97b6bc03f8e386ae3058c7fe022e5
2017-09-29 10:40:08 -07:00
Android Build Merger (Role) 165ff84d8e [automerger] Demo mode default layout support am: 2782449da6 am: ea1212a38a
Change-Id: Iaf6a29db70901d76125e79c86ca7dda0bf34ea67
2017-09-29 15:49:46 +00:00
Android Build Merger (Role) ea1212a38a [automerger] Demo mode default layout support am: 2782449da6
Change-Id: I0d03e760f97c6f9984ad0bf9e8f9e8c7a8a8b5c7
2017-09-29 15:49:43 +00:00
Adam Cohen 2782449da6 Demo mode default layout support
67062454

Change-Id: Ic060d3d7dba4fffe688dddf7cd04c48e4baaf813
2017-09-29 15:49:34 +00:00
Sunny Goyal b808e1102f Disabling state saving for search textbox as search results are
not preserved across activity recreate

Bug: 65661416
Change-Id: I0bd6414cea8d25b341374cd40ecaa270d5f19c18
(cherry picked from commit dee55f92ad)
2017-09-27 21:05:03 +00:00
Bill Yi f00c5b5fd4 Import translations. DO NOT MERGE
Change-Id: I565f8090a76c1019d02a1d00bef8d9f5a73a97ca
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-09-26 09:16:39 -07:00
Sunny Goyal dee55f92ad Disabling state saving for search textbox as search results are
not preserved across activity recreate

Bug: 65661416
Change-Id: I0bd6414cea8d25b341374cd40ecaa270d5f19c18
2017-09-19 12:06:40 -07:00
Bill Yi baaee5fd4e Import translations. DO NOT MERGE
Change-Id: I8b2409eb2a055992bd47f2c4f1959919333a9417
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-09-18 14:44:18 -07:00
Sunny Goyal 952e63d006 Fixing custom widgets support:
> Moving the definitions to xml so that it is easier to override in derivative projects
> Fixing verious bind and save logic for custom widgets
> Adding feature flag to easily disable custom widgets

Change-Id: I0e278bc7dd415713029364060ef10842da990be9
2017-09-13 14:04:35 -07:00
Bill Yi be213def87 Import translations. DO NOT MERGE
Change-Id: Id11401a9e60c09548748d7a60c602d33ae4a9329
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-09-13 11:49:14 -07:00
Sunny Goyal add3d8322d Removing some folder customization options
The old folder preview and animation relied on creating bitmaps for transition.
As we move to hardware bitmaps, creating custom bitmaps which rely on icon bitmaps
would be costly (hardware bitmaps are immutable and cannot be drawn on a software canvas).

Bug: 35428783
Change-Id: I39869ed44feb6a886985ad15775bc1ab55565727
2017-09-08 12:07:24 -07:00