Loading packages/MtpDocumentsProvider/src/com/android/mtp/MtpDocumentsProvider.java +6 −2 Original line number Diff line number Diff line Loading @@ -360,8 +360,12 @@ public class MtpDocumentsProvider extends DocumentsProvider { if (i == 0) { infoUniqueName = info; } else { infoUniqueName = new MtpObjectInfo.Builder(info).setName( baseName + " (" + i + ")." + extension).build(); String suffixedName = baseName + " (" + i + " )"; if (!extension.isEmpty()) { suffixedName += "." + extension; } infoUniqueName = new MtpObjectInfo.Builder(info).setName(suffixedName).build(); } try { objectHandle = mMtpManager.createDocument( Loading Loading
packages/MtpDocumentsProvider/src/com/android/mtp/MtpDocumentsProvider.java +6 −2 Original line number Diff line number Diff line Loading @@ -360,8 +360,12 @@ public class MtpDocumentsProvider extends DocumentsProvider { if (i == 0) { infoUniqueName = info; } else { infoUniqueName = new MtpObjectInfo.Builder(info).setName( baseName + " (" + i + ")." + extension).build(); String suffixedName = baseName + " (" + i + " )"; if (!extension.isEmpty()) { suffixedName += "." + extension; } infoUniqueName = new MtpObjectInfo.Builder(info).setName(suffixedName).build(); } try { objectHandle = mMtpManager.createDocument( Loading