mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 02:38:58 +03:00
codacy: String.indexOf(char) is faster than String.indexOf(String).
This commit is contained in:
parent
0ee0c655cf
commit
1e443545c9
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue