commit | b34cd640af4fe76198a2a409290fa5167c4b62b9 | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Tue Mar 23 10:47:56 2021 +0100 |
committer | Martijn Coenen <maco@google.com> | Mon Apr 26 14:18:53 2021 +0200 |
tree | dfdc1b9590781ec53ac6537717731176abdbc9f4 | |
parent | d108aedd5f80e27246ef7dbc88deaaaedd21736b [diff] |
Start using MediaVolume in attachVolume()/detachVolume(). These used to take a volume name, which may no longer be unique. This ripples through into a few other different places, most notably the scanner and thumbnailer. Also switch createDefaultFolders() to use the volume id instead of the volume name, since the latter may no longer be unique. Bug: 182396009 Test: atest CtsScopedStorageDeviceTest Test: atest MediaProviderTests Change-Id: I72a3b4dbceda926c736504f35a7c738a85a3d7d6