Add Tests for work profile toggle

+ Fix minor style issues

Bug: 140099753
Bug: 112899690
Test: Manual
Change-Id: I1257560be79748abe54a75a74d93caa4390943b5
This commit is contained in:
Samuel Fufa
2020-02-04 12:08:11 -08:00
parent a7c931dd49
commit ea4dcf468e
7 changed files with 79 additions and 12 deletions

View File

@@ -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)