Loading core/java/android/os/Bundle.java +16 −0 Original line number Diff line number Diff line Loading @@ -227,6 +227,18 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable { mFlags = FLAG_HAS_FDS_KNOWN | FLAG_ALLOW_FDS; } /** * Removes any entry with the given key from the mapping of this Bundle. * * @param key a String key */ public void remove(String key) { super.remove(key); if ((mFlags & FLAG_HAS_FDS) != 0) { mFlags &= ~FLAG_HAS_FDS_KNOWN; } } /** * Inserts all mappings from the given Bundle into this Bundle. * Loading Loading @@ -308,6 +320,8 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable { if (fdFound) { mFlags |= FLAG_HAS_FDS; } else { mFlags &= ~FLAG_HAS_FDS; } mFlags |= FLAG_HAS_FDS_KNOWN; } Loading Loading @@ -335,6 +349,8 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable { mMap.removeAt(i); } } mFlags |= FLAG_HAS_FDS_KNOWN; mFlags &= ~FLAG_HAS_FDS; } /** Loading Loading
core/java/android/os/Bundle.java +16 −0 Original line number Diff line number Diff line Loading @@ -227,6 +227,18 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable { mFlags = FLAG_HAS_FDS_KNOWN | FLAG_ALLOW_FDS; } /** * Removes any entry with the given key from the mapping of this Bundle. * * @param key a String key */ public void remove(String key) { super.remove(key); if ((mFlags & FLAG_HAS_FDS) != 0) { mFlags &= ~FLAG_HAS_FDS_KNOWN; } } /** * Inserts all mappings from the given Bundle into this Bundle. * Loading Loading @@ -308,6 +320,8 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable { if (fdFound) { mFlags |= FLAG_HAS_FDS; } else { mFlags &= ~FLAG_HAS_FDS; } mFlags |= FLAG_HAS_FDS_KNOWN; } Loading Loading @@ -335,6 +349,8 @@ public final class Bundle extends BaseBundle implements Cloneable, Parcelable { mMap.removeAt(i); } } mFlags |= FLAG_HAS_FDS_KNOWN; mFlags &= ~FLAG_HAS_FDS; } /** Loading