Loading media/java/android/mtp/MtpDatabase.java +4 −4 Original line number Diff line number Diff line Loading @@ -935,8 +935,8 @@ public class MtpDatabase { int count = mMediaProvider.delete(uri, // the 'like' makes it use the index, the 'lower()' makes it correct // when the path contains sqlite wildcard characters "_data LIKE ? AND lower(substr(_data,?))=lower(?)", new String[] { path + "/%", "" + path.length() + 1, path + "/"}); "_data LIKE ?1 AND lower(substr(_data,1,?2))=lower(?3)", new String[] { path + "/%",Integer.toString(path.length() + 1), path + "/"}); } Uri uri = Files.getMtpObjectsUri(mVolumeName, handle); Loading Loading
media/java/android/mtp/MtpDatabase.java +4 −4 Original line number Diff line number Diff line Loading @@ -935,8 +935,8 @@ public class MtpDatabase { int count = mMediaProvider.delete(uri, // the 'like' makes it use the index, the 'lower()' makes it correct // when the path contains sqlite wildcard characters "_data LIKE ? AND lower(substr(_data,?))=lower(?)", new String[] { path + "/%", "" + path.length() + 1, path + "/"}); "_data LIKE ?1 AND lower(substr(_data,1,?2))=lower(?3)", new String[] { path + "/%",Integer.toString(path.length() + 1), path + "/"}); } Uri uri = Files.getMtpObjectsUri(mVolumeName, handle); Loading