fix error when import file from content uri

This commit is contained in:
hyb1996
2017-07-12 13:44:09 +08:00
parent 593abe630f
commit 840318218b
3 changed files with 50 additions and 6 deletions

View File

@@ -52,6 +52,13 @@ public class IntentExtras implements Serializable {
return (T) mMap.get(key);
}
@SuppressWarnings("unchecked")
public <T> T getAndClear(String key) {
T value = (T) mMap.get(key);
clear();
return value;
}
public IntentExtras put(String key, Object value) {
mMap.put(key, value);
return this;