Skip to content

Commit e05babd

Browse files
committed
Add clip data support for intent stream
1 parent 2c23e1e commit e05babd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicIntentUtils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ public class DynamicIntentUtils {
147147
return intent.getParcelableExtra(Intent.EXTRA_STREAM);
148148
}
149149

150+
if (intent.getClipData() != null && intent.getClipData().getItemAt(0) != null) {
151+
return intent.getClipData().getItemAt(0).getUri();
152+
}
153+
150154
return intent.getData();
151155
}
152156

0 commit comments

Comments
 (0)