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

@@ -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);
}
}