am ea1841a3
: Merge "Use default volume description when missing label." into lmp-mr1-dev automerge: cc66a23
* commit 'ea1841a3c1015b53e19ace727f9ebe5a75f87dc1': Use default volume description when missing label.
This commit is contained in:
@ -154,7 +154,12 @@ public class ExternalStorageProvider extends DocumentsProvider {
|
||||
if (ROOT_ID_PRIMARY_EMULATED.equals(rootId)) {
|
||||
root.title = getContext().getString(R.string.root_internal_storage);
|
||||
} else {
|
||||
root.title = volume.getUserLabel();
|
||||
final String userLabel = volume.getUserLabel();
|
||||
if (!TextUtils.isEmpty(userLabel)) {
|
||||
root.title = userLabel;
|
||||
} else {
|
||||
root.title = volume.getDescription(getContext());
|
||||
}
|
||||
}
|
||||
root.docId = getDocIdForFile(path);
|
||||
mRoots.add(root);
|
||||
|
Reference in New Issue
Block a user