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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user