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:
@@ -84,7 +84,7 @@ public class MusicViewHolderController implements FileViewHolderController {
|
||||
DocumentsContract.buildRootUri(AUTHORITY_MEDIA, "audio_root"),
|
||||
DocumentsContract.Root.MIME_TYPE_ITEM);
|
||||
intent.addCategory(Intent.CATEGORY_DEFAULT);
|
||||
intent.putExtra(Intent.EXTRA_USER_ID, mUser);
|
||||
intent.putExtra(Intent.EXTRA_USER_ID, mUser.getIdentifier());
|
||||
Utils.launchIntent(fragment, intent);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user