Commit Graph

210 Commits

Author SHA1 Message Date
Sunny Goyal
0bd7f4f2dc Using paged view for all-apps tabs
Bug: 72811152
Change-Id: I0cca426d935f079c923b93fe3d4399f87778fe95
2018-02-13 09:55:29 -08:00
Sunny Goyal
60180b049e Deferring all app updates until the pending executor is complete.
We were only deferring full apps binds and not partial updates which could cause
the model to go out of sync with Launcher.

Bug: 72051234
Change-Id: I20db0e86aadd1e6a518237026f6dfb03e469eb87
2018-02-07 15:55:58 -08:00
Sunny Goyal
ee047871eb Removing unnecessary view inflation
Using a predefined height for app icons, and for everything else,
inflating it on demand

Change-Id: I7520802f30d2111d63fe336b09f6264201cdea61
2018-02-06 11:00:09 -08:00
TreeHugger Robot
0ad5131d77 Merge "Removing support for app prediction from Launcher3" into ub-launcher3-master 2018-02-06 00:55:56 +00:00
Sunny Goyal
fde5505d02 Handling configuration changes
> Adding a listener for device profile changes
> Updating various controllers instead of recreating them
> Clearing all-apps icon

Bug: 71709920
Change-Id: Ief7db199eb7494ebd8fb433198f333cd2e8e661d
2018-02-01 14:47:08 -08:00
Sunny Goyal
c94cfc052c Merge "Initial changes for handling configuration changes dynamically" into ub-launcher3-master 2018-02-01 21:35:10 +00:00
TreeHugger Robot
6a22996244 Merge "Highlight the tab for the first time" into ub-launcher3-master 2018-02-01 17:28:56 +00:00
Sunny Goyal
f8d56fc8a1 Initial changes for handling configuration changes dynamically
Bug: 71709920
Change-Id: I88cf2229dea28d01c13a5a76d2290e91b07d095e
2018-01-31 15:20:30 -08: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
Sunny Goyal
426345bfc4 Adding AppsStore for handling various app updates
Change-Id: Ia2242ce583576ace0924ef7142793ba37f4adcb9
2018-01-25 15:19:29 -08:00
TreeHugger Robot
04ff8b1ca6 Merge "Fix work tab is gone when leaving search mode" into ub-launcher3-master 2018-01-18 23:31:55 +00:00
Tony Mak
cad08fb661 Highlight the tab for the first time
FIXES: 71748023

Change-Id: I051789172a1869ceb950eb5dbbf15e3eeb60ed64
2018-01-18 13:55:33 +00:00
TreeHugger Robot
fddaaca841 Merge "Update apps icon in prediction apps row when apps are updated" into ub-launcher3-master 2018-01-18 10:45:12 +00:00
TreeHugger Robot
d811d99daf Merge "Fix for badge updates in PredictionRowView" into ub-launcher3-master 2018-01-16 23:01:12 +00:00
Mario Bertschler
62d2db1d60 Fix for badge updates in PredictionRowView
Bug: 72054359
Change-Id: I6d435c380d182ba99f9627c049f7f36ad331ee1d
2018-01-16 14:49:51 -08:00
Sunny Goyal
12069e6cbf Removing some device profile dependencies in view contructors
Bug: 71709920
Change-Id: I13e33dceaeff71e3fb7bbb93f24be69c17d6da96
2018-01-16 14:17:47 -08:00
Tony Mak
faaf5a5399 Update apps icon in prediction apps row when apps are updated
Fix: 70717710

Change-Id: I89540893ca3c8c4eae3f47bc07c3deade135e5c3
2018-01-15 14:08:48 +00:00
Tony Mak
7ccbefcc56 Fix work tab is gone when leaving search mode
1. onSearchResultsChanged is not called if the query is empty.
   Introduce onClearSearchResult and restore the tab there
2. rebindAdapters should only perform the actual logic
   if showTabs != mShowTabs, except the first time when we init the
   layout in onFinishInflate.

Fix: 71737947
Change-Id: I5485d6be0fc33b73aa6e0709be66cef8d43b4dbd
2018-01-11 15:55:24 +00: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
Tony Mak
4233405016 Add peek to work tab animation
Only the tab is moved, the RV does not.

Fix: 71748023

Change-Id: I99216e9072df03104dd0644f3909e8b49e07faf0
2018-01-10 18:02:47 +00: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
Sunny Goyal
da1e4b31f0 Fixing wrong check used for predictions
Change-Id: I990b101c32abe02a14d95bd00c0b63cda95b4066
2018-01-05 10:49:37 -08:00
Mario Bertschler
d8ab4671e3 Moving divider line into predictionview.
Change-Id: I40753aaa154023641cead2bd7dcf906fa5a4c2d7
2017-12-14 11:20:46 -08:00
TreeHugger Robot
ffa3bb97ff Merge "Ensures in all apps that the scrollposition and floating header translation are reset correctly on closing all apps and switching tabs." into ub-launcher3-master 2017-12-13 17:39:46 +00:00
Mario Bertschler
f66589db35 Ensures in all apps that the scrollposition and floating header
translation are reset correctly on closing all apps and switching tabs.

Change-Id: I86ba3e7bed4c27c485929af5920f76000d323875
2017-12-13 09:22:50 -08:00
Mario Bertschler
9f62d13ed8 Preserve top/bottom padding in PredictionRowView on updating insets.
Change-Id: Iba75902df46ff51b036d2ff117d4ab1ef2e1c0f8
2017-12-12 15:11:10 -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
Mario Bertschler
527051aaba Minor refactoring of FloatingHeaderView and PredictionRowView.
The main purpose of the CL is to let the let the PredictionRowView
calculate its own height instead of setting it from outside and cleaning
up dead code in FloatingHeaderView.

Change-Id: I7d63ee51a1a2f64618f7fd287bcf4cdb8476caa2
2017-12-07 14:15:23 -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
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
Mario Bertschler
527fa71adc Enables searching when using work tabs together with fallback search.
Bug: 69966634
Bug: 68713881
Change-Id: I972696575b7559b5baf80b949437dcb2dc885f66
2017-12-01 10:57:05 -08:00
Mario Bertschler
a5f5483cb0 PredictionRowView: handling the case where no predictions are populated.
Bug: 68713881
Change-Id: I63efd5631f5ad3cb3028c02fd83deca00096b00a
2017-11-30 08:51:50 -08:00
Mario Bertschler
2f768cb5d9 Merge "Fixes rebinding worktab layout vs single recycler view (on workprofile change)" into ub-launcher3-master 2017-11-30 16:35:57 +00:00
Mario Bertschler
8a63a587c0 Merge "Fixes a bug when using the prediction row view and changing screen orientation." into ub-launcher3-master 2017-11-30 16:35:46 +00: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
Mario Bertschler
44607301e2 Fixes a bug when using the prediction row view and changing screen orientation.
Bug: 68713881
Change-Id: I9740eee8425d42af87c8c788aefff9a99ae48d2f
2017-11-28 13:36:03 -08:00
Mario Bertschler
a4dedf426f Fixes rebinding worktab layout vs single recycler view (on workprofile change)
Bug: 68713881
Change-Id: I37bcc800ebeec54157eb1d342666d1695e46aaab
2017-11-28 12:27:29 -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
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
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
f9403d92fa Removing state definition from Launcher
State is only maintained is workspace and is used for all the UI

Bug: 67678570
Change-Id: Ie3cce5a1f4ada3913d0480f7918c27460dacbd34
2017-10-18 15:04:22 -07:00
Sunny Goyal
1797af41d1 Cleaning up drag state management.
When the drag is started, the UI automatically goes into spring loaded mode. On a successful
drop, it is the responsibility of the {@link DropTarget} to exit out of the spring loaded
mode. If the drop was cancelled for some reason, the UI will automatically exit out of this mode.

Bug: 34692289
Change-Id: Ic611739a43bb8d9279b587aaee3039326c143e8b
2017-10-16 13:06:52 -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
a9e345f886 Merge "Removing some methods from the DragSource" into ub-launcher3-master 2017-10-05 17:20:58 +00:00