Versioning, changelog

This commit is contained in:
misaochan 2016-01-12 20:11:24 +13:00
parent 87ad638b56
commit 6226f2cd26
3 changed files with 15 additions and 12 deletions

View file

@ -9,16 +9,17 @@ import android.os.Environment;
import android.provider.MediaStore;
import android.provider.DocumentsContract;
/**
* Get a file path from a Uri. This will get the the path for Storage Access
* Framework Documents, as well as the _data field for the MediaStore and
* other file-based ContentProviders.
*
* @author paulburke
*/
public class FileUtils {
/**
* Get a file path from a Uri. This will get the the path for Storage Access
* Framework Documents, as well as the _data field for the MediaStore and
* other file-based ContentProviders.
*
* @param context The context.
* @param uri The Uri to query.
* @author paulburke
*/
public static String getPath(final Context context, final Uri uri) {
final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
@ -111,7 +112,6 @@ public class FileUtils {
return null;
}
/**
* @param uri The Uri to check.
* @return Whether the Uri authority is ExternalStorageProvider.