Add logs to check which userId is used for workProfile matcher

Flag: none
Test: compiles
Bug: 243688989
Change-Id: I0a579203cc0c51f7707180b323ed4828f1dea297
This commit is contained in:
Vinit Nayak
2023-05-11 10:39:20 -07:00
parent 4d559a6c92
commit 88a91bbd16
3 changed files with 16 additions and 3 deletions
@@ -97,7 +97,11 @@ public class WorkProfileManager implements PersonalWorkSlidingTabStrip.OnActiveP
StatsLogManager statsLogManager) {
mUserManager = userManager;
mAllApps = allApps;
if (FeatureFlags.ENABLE_APP_CLONING_CHANGES_IN_LAUNCHER.get()) {
boolean cloningChanges = FeatureFlags.ENABLE_APP_CLONING_CHANGES_IN_LAUNCHER.get();
if (TestProtocol.sDebugTracing) {
Log.d(WORK_TAB_MISSING, "matcher flag: " + cloningChanges);
}
if (cloningChanges) {
mMatcher = ofWorkProfileUser(userManager);
} else {
mMatcher = mAllApps.mPersonalMatcher.negate();