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:
@@ -83,6 +83,7 @@ public class PhotosViewHolderController implements FileViewHolderController {
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
|
||||
intent.setType(IMAGE_MIME_TYPE);
|
||||
intent.putExtra(Intent.EXTRA_FROM_STORAGE, true);
|
||||
intent.putExtra(Intent.EXTRA_USER_ID, mUser.getIdentifier());
|
||||
Utils.launchIntent(fragment, intent);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user