Implement the work scheduler view and update colors of FAB
Update colors of the FAB to spec: https://www.figma.com/design/uMzPkNMZpb7EyfHDo8usIa/V-%E2%80%A2-Toast-Butter?node-id=3784-112229&node-type=instance&m=dev Exported the brief case icon from figma since it is not available on go/icons. Color of the brief case icon is onPrimary. Have place holder string in launcher but implement the actual string in NL. bug:361589193 Test - manual: video: https://drive.google.com/file/d/1CIs8qdtV1jUvbq57CcgAXDBPPHHX5CKJ/view?usp=sharing Flag: com.android.launcher3.work_scheduler_in_work_profile Change-Id: Ia98e9c4394f6ddfa7009653034929f9afbfeac8c
This commit is contained in:
1 parent
4674c3bb2b
commit
bfd02bb36a
17 files changed
+246
-94
No files matched your search
@@ -726,7 +726,7 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
post(() -> mAH.get(AdapterHolder.WORK).applyPadding());
|
||||
|
||||
} else {
|
||||
mWorkManager.detachWorkModeSwitch();
|
||||
mWorkManager.detachWorkUtilityViews();
|
||||
mViewPager = null;
|
||||
}
|
||||
|
||||
@@ -1257,8 +1257,8 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
/** Called in Launcher#bindStringCache() to update the UI when cache is updated. */
|
||||
public void updateWorkUI() {
|
||||
setDeviceManagementResources();
|
||||
if (mWorkManager.getWorkModeSwitch() != null) {
|
||||
mWorkManager.getWorkModeSwitch().updateStringFromCache();
|
||||
if (mWorkManager.getWorkUtilityView() != null) {
|
||||
mWorkManager.getWorkUtilityView().updateStringFromCache();
|
||||
}
|
||||
inflateWorkCardsIfNeeded();
|
||||
}
|
||||
@@ -1581,8 +1581,8 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
void applyPadding() {
|
||||
if (mRecyclerView != null) {
|
||||
int bottomOffset = 0;
|
||||
if (isWork() && mWorkManager.getWorkModeSwitch() != null) {
|
||||
bottomOffset = mInsets.bottom + mWorkManager.getWorkModeSwitch().getHeight();
|
||||
if (isWork() && mWorkManager.getWorkUtilityView() != null) {
|
||||
bottomOffset = mInsets.bottom + mWorkManager.getWorkUtilityView().getHeight();
|
||||
} else if (isMain() && mPrivateProfileManager != null) {
|
||||
Optional<AdapterItem> privateSpaceHeaderItem = mAppsList.getAdapterItems()
|
||||
.stream()
|
||||
|
||||
Reference in new issue
Block a user