~xdavidwu/saf-cephfs

0ac435ed4b817af48fe60ca40da2a422eaa9bfba — Pinghao Wu 2 months ago e237b8c
fix various lints
2 files changed, 4 insertions(+), 2 deletions(-)

M src/main/AndroidManifest.xml
M src/main/java/org/safcephfs/CephFSDocumentsProvider.java
M src/main/AndroidManifest.xml => src/main/AndroidManifest.xml +1 -1
@@ 10,7 10,7 @@
		android:enableOnBackInvokedCallback="true"
		android:allowBackup="false">
		<activity android:name="MainActivity"
			android:label="@string/app_name" android:exported="true"
			android:exported="true"
			android:theme="@android:style/Theme.DeviceDefault">
			<intent-filter>
				<action android:name="android.intent.action.MAIN" />

M src/main/java/org/safcephfs/CephFSDocumentsProvider.java => src/main/java/org/safcephfs/CephFSDocumentsProvider.java +3 -1
@@ 31,6 31,7 @@ import java.io.IOException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Vector;
import java.util.Locale;

import com.ceph.fs.CephMount;
import com.ceph.fs.CephStat;


@@ 78,7 79,7 @@ public class CephFSDocumentsProvider extends DocumentsProvider {
		int idx = filename.lastIndexOf(".");
		if (idx > 0) {
			String mime = MimeTypeMap.getSingleton().getMimeTypeFromExtension(
				filename.substring(idx + 1).toLowerCase());
				filename.substring(idx + 1).toLowerCase(Locale.ROOT));
			if (mime != null) {
				return mime;
			}


@@ 377,6 378,7 @@ public class CephFSDocumentsProvider extends DocumentsProvider {
					MediaMetadataReader.isSupportedMimeType(mimeType) &&
					(!checkPermissions ||
					(getPerm(cs) & PERM_READABLE) == PERM_READABLE)) {
				// noinspection InlinedApi
				flags |= Document.FLAG_SUPPORTS_METADATA;
			}
			if (!checkPermissions ||