mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
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
This commit is contained in:
@@ -120,8 +120,8 @@ public class AllAppsContainerView extends RelativeLayout implements DragSource,
|
||||
addView(mTouchFeedbackView, size, size);
|
||||
|
||||
mAH = new AdapterHolder[2];
|
||||
mAH[AdapterHolder.MAIN] = new AdapterHolder();
|
||||
mAH[AdapterHolder.WORK] = new AdapterHolder();
|
||||
mAH[AdapterHolder.MAIN] = new AdapterHolder(false /* isWork */);
|
||||
mAH[AdapterHolder.WORK] = new AdapterHolder(true /* isWork */);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -627,8 +627,8 @@ public class AllAppsContainerView extends RelativeLayout implements DragSource,
|
||||
AllAppsRecyclerView recyclerView;
|
||||
boolean verticalFadingEdge;
|
||||
|
||||
AdapterHolder() {
|
||||
appsList = new AlphabeticalAppsList(mLauncher, mComponentToAppMap);
|
||||
AdapterHolder(boolean isWork) {
|
||||
appsList = new AlphabeticalAppsList(mLauncher, mComponentToAppMap, isWork);
|
||||
adapter = new AllAppsGridAdapter(mLauncher, appsList, mLauncher,
|
||||
AllAppsContainerView.this, true);
|
||||
appsList.setAdapter(adapter);
|
||||
|
||||
Reference in New Issue
Block a user