diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-29 23:24:05 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-29 23:24:05 +0200 |
commit | 9a22917951a9dacc9470633f94b769c4d7187943 (patch) | |
tree | b4c484158caf88273a9ebecc81074bced0fd675c /src/main/java/de/pixart/messenger/ui/util | |
parent | f149772daffab5351aec06c5e62ebb9e9d54dc64 (diff) |
migrate recording activity to view binder
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui/util')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/util/AttachmentTool.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/util/AttachmentTool.java b/src/main/java/de/pixart/messenger/ui/util/AttachmentTool.java index 28b8cd42e..c56f27ebf 100644 --- a/src/main/java/de/pixart/messenger/ui/util/AttachmentTool.java +++ b/src/main/java/de/pixart/messenger/ui/util/AttachmentTool.java @@ -33,7 +33,6 @@ import android.annotation.SuppressLint; import android.content.ClipData; import android.content.Intent; import android.net.Uri; -import android.os.Build; import java.util.ArrayList; import java.util.List; @@ -45,8 +44,8 @@ public class AttachmentTool { if (intent == null) { return uris; } - Uri uri = intent.getData(); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2 && uri == null) { + final Uri uri = intent.getData(); + if (uri == null) { final ClipData clipData = intent.getClipData(); if (clipData != null) { for (int i = 0; i < clipData.getItemCount(); ++i) { |