aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2016-03-08 00:58:30 +0100
committerlookshe <github@lookshe.org>2016-03-08 00:58:30 +0100
commitf767a068423c50dde60bf570d6a05683ed6d76d7 (patch)
tree1fe02109dbaa63d6dbf4c52d1fb9ec7d2a1ab973 /src/main
parentc8759af913b775645b5394eb3c1f08d8c5fe9238 (diff)
use Build.VERSION_CODES.KITKAT instead of hard coded 19
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/thedevstack/conversationsplus/utils/FileHelper.java3
1 files changed, 2 insertions, 1 deletions
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;