Add Tests for work profile toggle
+ Fix minor style issues Bug: 140099753 Bug: 112899690 Test: Manual Change-Id: I1257560be79748abe54a75a74d93caa4390943b5
This commit is contained in:
@@ -153,6 +153,11 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
|
||||
return mMultiValueAlpha.getProperty(index);
|
||||
}
|
||||
|
||||
public WorkFooterContainer getWorkFooterContainer() {
|
||||
return mWorkFooterContainer;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void setDampedScrollShift(float shift) {
|
||||
// Bound the shift amount to avoid content from drawing on top (Y-val) of the QSB.
|
||||
|
||||
@@ -119,6 +119,13 @@ public class WorkFooterContainer extends LinearLayout implements Insettable {
|
||||
mWorkModeSwitch.refresh();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns work mode switch
|
||||
*/
|
||||
public WorkModeSwitch getWorkModeSwitch() {
|
||||
return mWorkModeSwitch;
|
||||
}
|
||||
|
||||
private boolean shouldShowWorkFooter() {
|
||||
Launcher launcher = Launcher.getLauncher(getContext());
|
||||
return Utilities.ATLEAST_P && (hasShortcutsPermission(launcher)
|
||||
|
||||
Reference in New Issue
Block a user