From f767a068423c50dde60bf570d6a05683ed6d76d7 Mon Sep 17 00:00:00 2001 From: lookshe Date: Tue, 8 Mar 2016 00:58:30 +0100 Subject: use Build.VERSION_CODES.KITKAT instead of hard coded 19 --- src/main/java/de/thedevstack/conversationsplus/utils/FileHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/de/thedevstack/conversationsplus/utils/FileHelper.java b/src/main/java/de/thedevstack/conversationsplus/utils/FileHelper.java index 9772b03f..5cba24b8 100644 --- a/src/main/java/de/thedevstack/conversationsplus/utils/FileHelper.java +++ b/src/main/java/de/thedevstack/conversationsplus/utils/FileHelper.java @@ -4,6 +4,7 @@ import android.annotation.TargetApi; import android.content.ContentResolver; import android.database.Cursor; import android.net.Uri; +import android.os.Build; import android.provider.DocumentsContract; import android.provider.MediaStore; @@ -19,7 +20,7 @@ public final class FileHelper { * @param uri * @return */ - @TargetApi(19) + @TargetApi(Build.VERSION_CODES.KITKAT) private static String getRealPathFromUriLollipop(Uri uri) { String path = null; -- cgit v1.2.3