~xdavidwu/saf-sftp

43527c330a246fafa4798219541158df06f9084f — xdavidwu 2 years ago ab9929c
SFTPDocumentsProvider: set dummy flag

we do not support any of the flags yet, but this should prevent
DocumentsUI with docinfo from crashing
1 files changed, 2 insertions(+), 0 deletions(-)

M src/main/java/org/safsftp/SFTPDocumentsProvider.java
M src/main/java/org/safsftp/SFTPDocumentsProvider.java => src/main/java/org/safsftp/SFTPDocumentsProvider.java +2 -0
@@ 56,6 56,7 @@ public class SFTPDocumentsProvider extends DocumentsProvider {
		Document.COLUMN_MIME_TYPE,
		Document.COLUMN_LAST_MODIFIED,
		Document.COLUMN_SIZE,
		Document.COLUMN_FLAGS,
	};

	private static String getMime(String filename) {


@@ 173,6 174,7 @@ public class SFTPDocumentsProvider extends DocumentsProvider {
		}
		row.add(Document.COLUMN_SIZE, stat.size);
		row.add(Document.COLUMN_LAST_MODIFIED, stat.mtime * 1000);
		row.add(Document.COLUMN_FLAGS, 0);
	}

	public Cursor queryChildDocuments(