codacy: String.indexOf(char) is faster than String.indexOf(String).

This commit is contained in:
AndyScherzinger 2018-09-20 10:01:02 +02:00
parent 0ee0c655cf
commit 1e443545c9
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -223,7 +223,7 @@ public final class MediaProvider {
if (filePath != null) {
mediaFolder.filePaths.add(filePath);
mediaFolder.absolutePath = filePath.substring(0, filePath.lastIndexOf("/"));
mediaFolder.absolutePath = filePath.substring(0, filePath.lastIndexOf('/'));
}
}
cursorVideos.close();