add: module device

This commit is contained in:
hyb1996
2017-12-02 21:06:01 +08:00
parent 1413bf21a5
commit d06171d549
13 changed files with 395 additions and 41 deletions

View File

@@ -56,7 +56,7 @@ public class IntentExtras implements Serializable {
@SuppressWarnings("unchecked")
public <T> T getAndClear(String key) {
T value = (T) mMap.get(key);
clear();
recycle();
return value;
}
@@ -70,7 +70,7 @@ public class IntentExtras implements Serializable {
return intent;
}
public void clear() {
public void recycle() {
extraStore.remove(mId);
mMap = null;
}