Add Tests for work profile toggle
+ Fix minor style issues Bug: 140099753 Bug: 112899690 Test: Manual Change-Id: I1257560be79748abe54a75a74d93caa4390943b5
This commit is contained in:
1 parent
a7c931dd49
commit
ea4dcf468e
7 files changed
+79
-12
No files matched your search
@@ -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