Fix work tab app doesn't launch correct user intent

- Pass user.getIndentifier() to intent

Fixes: 147357696
Test: 1. go to Settings -> Storage -> Music&Audio
      2. switch to work tab
      3. tab "Audio files"
      4. should display work profile files

Change-Id: I0d2883c45eb7b883adbaf034c0a49c5e52ba82f6
This commit is contained in:
Raff Tsai
2020-01-11 09:11:29 +08:00
parent a8e8b776ad
commit 4536fae5b7
4 changed files with 11 additions and 7 deletions

View File

@@ -439,10 +439,9 @@ public class StorageItemPreferenceController extends AbstractPreferenceControlle
private Bundle getWorkAnnotatedBundle(int additionalCapacity) {
if (FeatureFlagUtils.isEnabled(mContext, FeatureFlags.PERSONAL_WORK_PROFILE)) {
final Bundle args = new Bundle(2 + additionalCapacity);
final Bundle args = new Bundle(1 + additionalCapacity);
args.putInt(SettingsActivity.EXTRA_SHOW_FRAGMENT_TAB,
mIsWorkProfile ? WORK_TAB : PERSONAL_TAB);
args.putInt(ManageApplications.EXTRA_WORK_ID, mUserId);
return args;
} else {
final Bundle args = new Bundle(2 + additionalCapacity);